Skip to content

Commit

Permalink
Merge pull request #696 from LiskHQ/695-second-passphrase-back-button
Browse files Browse the repository at this point in the history
Fix second passphrase back button - Closes #695
  • Loading branch information
gina contrino committed Apr 6, 2018
2 parents 0360c5e + 907790d commit 99d3669
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion src/components/secondPassphrase/secondPassphrase.js
Expand Up @@ -21,6 +21,11 @@ class SecondPassphrase extends React.Component {
.push(`${routes.main.path}${routes.dashboard.path}`);
}
}

backToPreviousPage() {
this.props.history.goBack();
}

render() {
const { account, peers, registerSecondPassphrase, t } = this.props;
const header = t('Secure the use of your Lisk ID with a second passphrase.');
Expand All @@ -38,7 +43,9 @@ class SecondPassphrase extends React.Component {
<MultiStep
showNav={true}
finalCallback={onPassphraseRegister}
backButtonLabel={t('Back')}>
backButtonLabel={t('Back')}
prevPage={this.backToPreviousPage.bind(this)}
>
<CreateSecond title={t('Create')} t={t} icon='add' balance={account.balance} />
<Safekeeping title={t('Safekeeping')} t={t} step='revealing-step'
icon='checkmark' header={header} message={message} />
Expand Down

0 comments on commit 99d3669

Please sign in to comment.