Skip to content
This repository has been archived by the owner on Apr 15, 2019. It is now read-only.

Commit

Permalink
Merge pull request #525 from LiskHQ/524-fix-passphrase-field
Browse files Browse the repository at this point in the history
Fix passphrase field - Closes #524
  • Loading branch information
slaweet authored Jul 27, 2017
2 parents b10b7c5 + b74f880 commit be43911
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/components/login/loginFormComponent.js
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ class LoginFormComponent extends React.Component {
setTimeout(() => {
// get account info
const { onAccountUpdated } = this.props;
onAccountUpdated({ passphrase: (passphrase || this.state.passphrase) });
onAccountUpdated({ passphrase });
const accountInfo = this.props.account;

// redirect to main/transactions
Expand Down Expand Up @@ -154,7 +154,8 @@ class LoginFormComponent extends React.Component {
onPassGenerated: this.onLoginSubmission.bind(this),
},
})} />
<Button label='LOGIN' primary raised onClick={this.onLoginSubmission.bind(this)}
<Button label='LOGIN' primary raised
onClick={this.onLoginSubmission.bind(this, this.state.passphrase)}
disabled={(this.state.network === 2 && this.state.addressValidity !== '') ||
this.state.passphraseValidity !== ''} />
</div>
Expand Down

0 comments on commit be43911

Please sign in to comment.