|
|
|
@ -19,6 +19,7 @@ export default class ImportWithSeedPhrase extends PureComponent { |
|
|
|
|
onSubmit: PropTypes.func.isRequired, |
|
|
|
|
setSeedPhraseBackedUp: PropTypes.func, |
|
|
|
|
initializeThreeBox: PropTypes.func, |
|
|
|
|
completeOnboarding: PropTypes.func, |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
state = { |
|
|
|
@ -119,7 +120,7 @@ export default class ImportWithSeedPhrase extends PureComponent { |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
const { password, seedPhrase } = this.state |
|
|
|
|
const { history, onSubmit, setSeedPhraseBackedUp, initializeThreeBox } = this.props |
|
|
|
|
const { history, onSubmit, setSeedPhraseBackedUp, initializeThreeBox, completeOnboarding } = this.props |
|
|
|
|
|
|
|
|
|
try { |
|
|
|
|
await onSubmit(password, this.parseSeedPhrase(seedPhrase)) |
|
|
|
@ -131,7 +132,8 @@ export default class ImportWithSeedPhrase extends PureComponent { |
|
|
|
|
}, |
|
|
|
|
}) |
|
|
|
|
|
|
|
|
|
setSeedPhraseBackedUp(true).then(() => { |
|
|
|
|
setSeedPhraseBackedUp(true).then(async () => { |
|
|
|
|
await completeOnboarding() |
|
|
|
|
initializeThreeBox() |
|
|
|
|
history.push(INITIALIZE_END_OF_FLOW_ROUTE) |
|
|
|
|
}) |
|
|
|
|