diff --git a/src/components/views/login/PasswordLogin.js b/src/components/views/login/PasswordLogin.js index c30cb9d72a..16bd339825 100644 --- a/src/components/views/login/PasswordLogin.js +++ b/src/components/views/login/PasswordLogin.js @@ -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