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