mirror of
https://github.com/maybe-finance/maybe.git
synced 2025-08-08 23:15:24 +02:00
Disable button on submit
This commit is contained in:
parent
f1e0b84e60
commit
f902c5ccd5
1 changed files with 2 additions and 0 deletions
|
@ -28,6 +28,7 @@ export default function LoginPage() {
|
|||
setErrorMessage(null)
|
||||
setPassword('')
|
||||
setIsLoading(true)
|
||||
setIsValid(false)
|
||||
|
||||
const response = await signIn('credentials', {
|
||||
email,
|
||||
|
@ -38,6 +39,7 @@ export default function LoginPage() {
|
|||
if (response && response.error) {
|
||||
setErrorMessage(response.error)
|
||||
setIsLoading(false)
|
||||
setIsValid(true)
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue