clear error on login type change

Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>
This commit is contained in:
Michael Telatynski 2018-06-23 17:13:40 +01:00
parent 15e75ca7b3
commit 4a5fbf2c84
No known key found for this signature in database
GPG key ID: 3F879DA5AD802A5E

View file

@ -123,6 +123,7 @@ class PasswordLogin extends React.Component {
}
onLoginTypeChange(loginType) {
this.props.onError(null); // send a null error to clear any error messages
this.setState({
loginType: loginType,
username: "", // Reset because email and username use the same state