Disable login button when loading to prevent multiple login requests

This commit is contained in:
Arnaud Vergnet 2020-04-01 14:27:59 +02:00
parent ee13d099fe
commit a1f20fbf4e

View file

@ -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) {