mirror of
https://github.com/AykutSarac/jsoncrack.com.git
synced 2025-01-27 15:22:56 +08:00
fix: reset pwd
This commit is contained in:
parent
a18a8885af
commit
85aeb3f301
@ -281,7 +281,9 @@ const SignIn = () => {
|
|||||||
const [alertVisible, setAlertVisible] = React.useState(true);
|
const [alertVisible, setAlertVisible] = React.useState(true);
|
||||||
|
|
||||||
React.useEffect(() => {
|
React.useEffect(() => {
|
||||||
if (session && !isPasswordReset) push("/editor");
|
if (isReady && session && !isPasswordReset) {
|
||||||
|
push("/editor");
|
||||||
|
}
|
||||||
}, [isReady, session, push, isPasswordReset]);
|
}, [isReady, session, push, isPasswordReset]);
|
||||||
|
|
||||||
return (
|
return (
|
||||||
|
Loading…
x
Reference in New Issue
Block a user