diff options
Diffstat (limited to 'mascara/src/app/first-time/confirm-seed-screen.js')
-rw-r--r-- | mascara/src/app/first-time/confirm-seed-screen.js | 11 |
1 files changed, 8 insertions, 3 deletions
diff --git a/mascara/src/app/first-time/confirm-seed-screen.js b/mascara/src/app/first-time/confirm-seed-screen.js index 359e3d7fa..438f383b1 100644 --- a/mascara/src/app/first-time/confirm-seed-screen.js +++ b/mascara/src/app/first-time/confirm-seed-screen.js @@ -6,7 +6,7 @@ import classnames from 'classnames' import shuffle from 'lodash.shuffle' import { compose } from 'recompose' import Identicon from '../../../../ui/app/components/identicon' -import { confirmSeedWords } from '../../../../ui/app/actions' +import { confirmSeedWords, showModal } from '../../../../ui/app/actions' import Breadcrumbs from './breadcrumbs' import LoadingScreen from './loading-screen' import { DEFAULT_ROUTE } from '../../../../ui/app/routes' @@ -18,6 +18,7 @@ class ConfirmSeedScreen extends Component { seedWords: PropTypes.string, confirmSeedWords: PropTypes.func, history: PropTypes.object, + openBuyEtherModal: PropTypes.func, }; static defaultProps = { @@ -42,10 +43,13 @@ class ConfirmSeedScreen extends Component { } handleClick () { - const { confirmSeedWords, history } = this.props + const { confirmSeedWords, history, openBuyEtherModal } = this.props confirmSeedWords() - .then(() => history.push(DEFAULT_ROUTE)) + .then(() => { + history.push(DEFAULT_ROUTE) + openBuyEtherModal() + }) } render () { @@ -141,6 +145,7 @@ export default compose( }), dispatch => ({ confirmSeedWords: () => dispatch(confirmSeedWords()), + openBuyEtherModal: () => dispatch(showModal({ name: 'DEPOSIT_ETHER'})), }) ) )(ConfirmSeedScreen) |