Merge pull request #12 from Peer-at-Code/feat/dashboard-auth

Fix button loading
This commit is contained in:
Théo 2023-03-18 20:48:17 +01:00 committed by GitHub
commit 02956c9ef1
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -60,14 +60,12 @@ export default function UserAuthForm() {
type: 'manual',
message: "Nom d'utilisateur indisponible"
});
setIsLoading(false);
}
if (!email_valid) {
setError('email', {
type: 'manual',
message: 'Email déjà utilisé'
});
setIsLoading(false);
}
}
@ -81,6 +79,8 @@ export default function UserAuthForm() {
message: "Nom d'utilisateur ou mot de passe incorrect"
});
}
setIsLoading(false);
}
return (