Фикс в логине и регистрации

This commit is contained in:
Никита Потапов 2024-01-11 15:25:43 +04:00
parent 7a7ee8aab4
commit 31599cd291
2 changed files with 2 additions and 2 deletions

View File

@ -64,7 +64,7 @@ const AuthPage = () => {
if (Object.keys(errors).length === 0 && submitting && currentUser) { if (Object.keys(errors).length === 0 && submitting && currentUser) {
finishSubmit(); finishSubmit();
} }
}, [errors, submitting, currentUser]); });
return ( return (
<> <>

View File

@ -98,7 +98,7 @@ const RegisterPage = () => {
if (Object.keys(errors).length === 0 && submitting) { if (Object.keys(errors).length === 0 && submitting) {
finishSubmit(); finishSubmit();
} }
}, [errors, submitting, currentUser]); });
return ( return (
<> <>