forked from crowetic/commerce
fix login button staying disabled (#267)
When an error occurs the login button stays disabled,
This commit is contained in:
parent
fe6c0d8ed5
commit
07dbeb4194
@ -38,6 +38,7 @@ const LoginView: FC<Props> = () => {
|
||||
} catch ({ errors }) {
|
||||
setMessage(errors[0].message)
|
||||
setLoading(false)
|
||||
setDisabled(false)
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user