clear error on login type change
Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>pull/21833/head
							parent
							
								
									15e75ca7b3
								
							
						
					
					
						commit
						4a5fbf2c84
					
				| 
						 | 
				
			
			@ -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
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
		Reference in New Issue