diff --git a/src/components/structures/auth/Login.js b/src/components/structures/auth/Login.js index 3aba4a571e..a5ecbe36c7 100644 --- a/src/components/structures/auth/Login.js +++ b/src/components/structures/auth/Login.js @@ -566,9 +566,9 @@ export default class LoginComponent extends React.Component { this[PasswordLogin.LOGIN_FIELD_EMAIL] = field} />; case PasswordLogin.LOGIN_FIELD_MXID: - classes.error = this.props.loginIncorrect && !this.state.username; + classes.error = this.props.loginIncorrect && !this.props.username; return ; case PasswordLogin.LOGIN_FIELD_PHONE: { const CountryDropdown = sdk.getComponent('views.auth.CountryDropdown'); - classes.error = this.props.loginIncorrect && !this.state.phoneNumber; + classes.error = this.props.loginIncorrect && !this.props.phoneNumber; const phoneCountry =