forked from vergnet/application-amicale
Disable login button when loading to prevent multiple login requests
This commit is contained in:
parent
ee13d099fe
commit
a1f20fbf4e
1 changed files with 1 additions and 1 deletions
|
@ -104,7 +104,7 @@ class LoginScreen extends React.Component<Props, State> {
|
|||
}
|
||||
|
||||
shouldEnableLogin() {
|
||||
return this.isEmailValid() && this.isPasswordValid();
|
||||
return this.isEmailValid() && this.isPasswordValid() && !this.state.loading;
|
||||
}
|
||||
|
||||
onInputChange(isEmail: boolean, value: string) {
|
||||
|
|
Loading…
Reference in a new issue