diff options
| -rw-r--r-- | app/components/Login.js | 14 |
1 files changed, 3 insertions, 11 deletions
diff --git a/app/components/Login.js b/app/components/Login.js index f244f50da4..784d92daa8 100644 --- a/app/components/Login.js +++ b/app/components/Login.js @@ -18,9 +18,9 @@ export type LoginPropTypes = { export default class Login extends Component { props: LoginPropTypes; - state: { - notifyOnFirstChangeAfterFailure: boolean, - isActive: boolean, + state = { + notifyOnFirstChangeAfterFailure: false, + isActive: false, }; onCreateAccount = () => this.props.onExternalLink('createAccount'); @@ -42,14 +42,6 @@ export default class Login extends Component { this.props.onAccountTokenChange(val); } - constructor(props: LoginPropTypes) { - super(props); - this.state = { - notifyOnFirstChangeAfterFailure: false, - isActive: false, - }; - } - formTitle(s: LoginState): string { switch(s) { case 'logging in': return 'Logging in...'; |
