improvement: check input

This commit is contained in:
Francesco Esposito 2019-08-03 16:48:03 +02:00
parent 729a3c4361
commit ece7439c71
1 changed files with 3 additions and 2 deletions

View File

@ -44,8 +44,9 @@ class Login extends Component {
const { email, password } = this.state;
if (email && password) {
this.props.login(email, password);
}
}
resetLogin(event) {