fix the auth form
All checks were successful
Deploy / deploy (ubuntu-latest, 2.44.0) (push) Successful in 1m22s

This commit is contained in:
Braydon 2024-09-20 00:14:26 -04:00
parent cf122de847
commit db145f9eb8

@ -128,9 +128,8 @@ const AuthForm = (): ReactElement => {
method: "POST", method: "POST",
body: { email }, body: { email },
}); });
if (error) { setError(error?.message);
setError(error.message); if (!error) {
} else {
setStage(data?.exists ? "login" : "register"); setStage(data?.exists ? "login" : "register");
} }
} else { } else {