fix: reset pwd

This commit is contained in:
AykutSarac 2023-08-29 12:23:13 +03:00
parent a18a8885af
commit 85aeb3f301
No known key found for this signature in database

View File

@ -281,7 +281,9 @@ const SignIn = () => {
const [alertVisible, setAlertVisible] = React.useState(true);
React.useEffect(() => {
if (session && !isPasswordReset) push("/editor");
if (isReady && session && !isPasswordReset) {
push("/editor");
}
}, [isReady, session, push, isPasswordReset]);
return (