clear error on login type change

Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>
pull/21833/head
Michael Telatynski 2018-06-23 17:13:40 +01:00
父节点 15e75ca7b3
当前提交 4a5fbf2c84
找不到此签名对应的密钥
GPG 密钥 ID: 3F879DA5AD802A5E
共有 1 个文件被更改,包括 1 次插入0 次删除

查看文件

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