Merge pull request #6281 from MetaMask/fix-browser-back-on-reveal-seed

Fixes the use of the browser back button on the reveal seed screen
feature/default_network_editable
Thomas Huang 6 years ago committed by GitHub
commit 7981b1bf23
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 4
      ui/app/components/pages/first-time-flow/create-password/create-password.component.js

@ -6,7 +6,7 @@ import ImportWithSeedPhrase from './import-with-seed-phrase'
import {
INITIALIZE_CREATE_PASSWORD_ROUTE,
INITIALIZE_IMPORT_WITH_SEED_PHRASE_ROUTE,
INITIALIZE_END_OF_FLOW_ROUTE,
INITIALIZE_SEED_PHRASE_ROUTE,
} from '../../../../routes'
export default class CreatePassword extends PureComponent {
@ -21,7 +21,7 @@ export default class CreatePassword extends PureComponent {
const { isInitialized, history } = this.props
if (isInitialized) {
history.push(INITIALIZE_END_OF_FLOW_ROUTE)
history.push(INITIALIZE_SEED_PHRASE_ROUTE)
}
}

Loading…
Cancel
Save