fix the auth form
All checks were successful
Deploy / deploy (ubuntu-latest, 2.44.0) (push) Successful in 1m22s
All checks were successful
Deploy / deploy (ubuntu-latest, 2.44.0) (push) Successful in 1m22s
This commit is contained in:
parent
cf122de847
commit
db145f9eb8
@ -128,9 +128,8 @@ const AuthForm = (): ReactElement => {
|
||||
method: "POST",
|
||||
body: { email },
|
||||
});
|
||||
if (error) {
|
||||
setError(error.message);
|
||||
} else {
|
||||
setError(error?.message);
|
||||
if (!error) {
|
||||
setStage(data?.exists ? "login" : "register");
|
||||
}
|
||||
} else {
|
||||
|
Loading…
x
Reference in New Issue
Block a user