diff options
author | Alexander Tseung <alextsg@gmail.com> | 2018-04-05 09:21:30 +0800 |
---|---|---|
committer | Alexander Tseung <alextsg@gmail.com> | 2018-04-05 09:21:30 +0800 |
commit | 037d6e66248d2fc13a9d97a52ce667afe1aa2ae8 (patch) | |
tree | 60e33e1105cd0c93aef0ffa19e29c0e3ba51f2c3 /mascara/src | |
parent | 7776af7cd059499f34eea3408b323fd6b73fd05e (diff) | |
download | tangerine-wallet-browser-037d6e66248d2fc13a9d97a52ce667afe1aa2ae8.tar tangerine-wallet-browser-037d6e66248d2fc13a9d97a52ce667afe1aa2ae8.tar.gz tangerine-wallet-browser-037d6e66248d2fc13a9d97a52ce667afe1aa2ae8.tar.bz2 tangerine-wallet-browser-037d6e66248d2fc13a9d97a52ce667afe1aa2ae8.tar.lz tangerine-wallet-browser-037d6e66248d2fc13a9d97a52ce667afe1aa2ae8.tar.xz tangerine-wallet-browser-037d6e66248d2fc13a9d97a52ce667afe1aa2ae8.tar.zst tangerine-wallet-browser-037d6e66248d2fc13a9d97a52ce667afe1aa2ae8.zip |
Fix integration tests
Diffstat (limited to 'mascara/src')
-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) |