Merge pull request #12 from Peer-at-Code/feat/dashboard-auth
Fix button loading
This commit is contained in:
commit
02956c9ef1
1 changed files with 2 additions and 2 deletions
|
@ -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 (
|
||||
|
|
Loading…
Add table
Reference in a new issue