fix login button staying disabled

When an error occurs the login button stays disabled,
This commit is contained in:
Gandharv 2021-04-10 20:59:08 +05:30 committed by GitHub
parent 936f149fcc
commit 9867792454
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -38,6 +38,7 @@ const LoginView: FC<Props> = () => {
} catch ({ errors }) {
setMessage(errors[0].message)
setLoading(false)
setDisabled(false)
}
}