From 4a5fbf2c84705de650daa22e8b78c4d490ae59c2 Mon Sep 17 00:00:00 2001 From: Michael Telatynski <7t3chguy@gmail.com> Date: Sat, 23 Jun 2018 17:13:40 +0100 Subject: [PATCH] clear error on login type change Signed-off-by: Michael Telatynski <7t3chguy@gmail.com> --- src/components/views/login/PasswordLogin.js | 1 + 1 file changed, 1 insertion(+) 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