diff options
author | Alexander Tseung <alextsg@gmail.com> | 2018-04-18 15:31:33 +0800 |
---|---|---|
committer | Alexander Tseung <alextsg@gmail.com> | 2018-04-19 01:18:24 +0800 |
commit | 2c8156ebe91941309d49e8f8f1ed8e9d740bb9de (patch) | |
tree | a125bf68c21e9625bd4267b2978f1617473ffbc6 /ui/app/app.js | |
parent | 7b70804aa0d74120098a4bcb2c375d29080e8368 (diff) | |
download | tangerine-wallet-browser-2c8156ebe91941309d49e8f8f1ed8e9d740bb9de.tar tangerine-wallet-browser-2c8156ebe91941309d49e8f8f1ed8e9d740bb9de.tar.gz tangerine-wallet-browser-2c8156ebe91941309d49e8f8f1ed8e9d740bb9de.tar.bz2 tangerine-wallet-browser-2c8156ebe91941309d49e8f8f1ed8e9d740bb9de.tar.lz tangerine-wallet-browser-2c8156ebe91941309d49e8f8f1ed8e9d740bb9de.tar.xz tangerine-wallet-browser-2c8156ebe91941309d49e8f8f1ed8e9d740bb9de.tar.zst tangerine-wallet-browser-2c8156ebe91941309d49e8f8f1ed8e9d740bb9de.zip |
Fix UI getting stuck in Reveal Seed screen
Diffstat (limited to 'ui/app/app.js')
-rw-r--r-- | ui/app/app.js | 14 |
1 files changed, 13 insertions, 1 deletions
diff --git a/ui/app/app.js b/ui/app/app.js index 827b4e9ce..1667e848d 100644 --- a/ui/app/app.js +++ b/ui/app/app.js @@ -56,11 +56,20 @@ const { class App extends Component { componentWillMount () { - const { currentCurrency, setCurrentCurrencyToUSD } = this.props + const { + currentCurrency, + setCurrentCurrencyToUSD, + isRevealingSeedWords, + clearSeedWords, + } = this.props if (!currentCurrency) { setCurrentCurrencyToUSD() } + + if (isRevealingSeedWords) { + clearSeedWords() + } } renderRoutes () { @@ -406,6 +415,8 @@ App.propTypes = { isMouseUser: PropTypes.bool, setMouseUserState: PropTypes.func, t: PropTypes.func, + isRevealingSeedWords: PropTypes.bool, + clearSeedWords: PropTypes.func, } function mapStateToProps (state) { @@ -486,6 +497,7 @@ function mapDispatchToProps (dispatch, ownProps) { setCurrentCurrencyToUSD: () => dispatch(actions.setCurrentCurrency('usd')), toggleAccountMenu: () => dispatch(actions.toggleAccountMenu()), setMouseUserState: (isMouseUser) => dispatch(actions.setMouseUserState(isMouseUser)), + clearSeedWords: () => dispatch(actions.confirmSeedWords()), } } |