diff --git a/react/src/components/login/login.js b/react/src/components/login/login.js index 9371574..76240ae 100644 --- a/react/src/components/login/login.js +++ b/react/src/components/login/login.js @@ -38,7 +38,8 @@ class Login extends React.Component { isCustomSeedWeak: false, }; this.toggleActivateCoinForm = this.toggleActivateCoinForm.bind(this); - this.updateInput = this.updateInput.bind(this); + this.updateRegisterConfirmPassPhraseInput = this.updateRegisterConfirmPassPhraseInput.bind(this); + this.updateLoginPassPhraseInput = this.updateLoginPassPhraseInput.bind(this); this.loginSeed = this.loginSeed.bind(this); this.toggleSeedInputVisibility = this.toggleSeedInputVisibility.bind(this); this.handleRegisterWallet = this.handleRegisterWallet.bind(this); @@ -151,15 +152,21 @@ class Login extends React.Component { Store.dispatch(toggleAddcoinModal(true, false)); } - updateInput(e) { + updateLoginPassPhraseInput(e) { this.setState({ [e.target.name]: e.target.value, - isSeedConfirmError: false, - isSeedBlank: this.isBlank(e.target.value), loginPassPhraseSeedType: this.getLoginPassPhraseSeedType(e.target.value) }); } + updateRegisterConfirmPassPhraseInput(e) { + this.setState({ + [e.target.name]: e.target.value, + isSeedConfirmError: false, + isSeedBlank: this.isBlank(e.target.value) + }); + } + updateWalletSeed(e) { this.setState({ randomSeed: e.target.value, diff --git a/react/src/components/login/login.render.js b/react/src/components/login/login.render.js index 0d93aae..f1257fe 100644 --- a/react/src/components/login/login.render.js +++ b/react/src/components/login/login.render.js @@ -61,7 +61,7 @@ const LoginRender = function () { type={ this.state.seedInputVisibility ? 'text' : 'password' } className="form-control" name="loginPassphrase" - onChange={ this.updateInput } + onChange={ this.updateLoginPassPhraseInput } onKeyDown={ (event) => this.handleKeydown(event) }/> { translate('LOGIN.MUST_ENTER_SEED') }.