4
0
forked from crowetic/commerce

fix login button staying disabled (#267)

When an error occurs the login button stays disabled,
This commit is contained in:
Gandharv 2021-07-30 10:17:45 +05:30 committed by GitHub
parent fe6c0d8ed5
commit 07dbeb4194
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)
}
}