diff --git a/app/views/login.js b/app/views/login.js index e32e21cd..7f37a7de 100644 --- a/app/views/login.js +++ b/app/views/login.js @@ -107,7 +107,7 @@ class LoginView extends React.Component { } renderTOTP = () => { - if (this.state.totp) { + if (this.props.login.errorMessage && this.props.login.errorMessage.error === 'totp-required') { return ( this.codeInput = ref} @@ -166,7 +166,6 @@ class LoginView extends React.Component { {this.props.login.error && {this.props.login.error}} - ); }