aboutsummaryrefslogtreecommitdiffstats
path: root/ui/app
diff options
context:
space:
mode:
authorAlexander Tseung <alextsg@gmail.com>2018-04-22 13:23:45 +0800
committerAlexander Tseung <alextsg@gmail.com>2018-04-22 13:23:45 +0800
commit477b74124d24c9497fafb0c976eba27712c69d79 (patch)
tree8d4911513d5059b6df0f725e8e5030b37837facb /ui/app
parent4544d57f2632ce5a00dc8780a7b360ab9b2657c3 (diff)
downloadtangerine-wallet-browser-477b74124d24c9497fafb0c976eba27712c69d79.tar
tangerine-wallet-browser-477b74124d24c9497fafb0c976eba27712c69d79.tar.gz
tangerine-wallet-browser-477b74124d24c9497fafb0c976eba27712c69d79.tar.bz2
tangerine-wallet-browser-477b74124d24c9497fafb0c976eba27712c69d79.tar.lz
tangerine-wallet-browser-477b74124d24c9497fafb0c976eba27712c69d79.tar.xz
tangerine-wallet-browser-477b74124d24c9497fafb0c976eba27712c69d79.tar.zst
tangerine-wallet-browser-477b74124d24c9497fafb0c976eba27712c69d79.zip
Revert "Fix UI getting stuck in Reveal Seed screen"
This reverts commit 2c8156ebe91941309d49e8f8f1ed8e9d740bb9de.
Diffstat (limited to 'ui/app')
-rw-r--r--ui/app/actions.js16
-rw-r--r--ui/app/app.js14
2 files changed, 3 insertions, 27 deletions
diff --git a/ui/app/actions.js b/ui/app/actions.js
index 73335db97..f5cdd32bc 100644
--- a/ui/app/actions.js
+++ b/ui/app/actions.js
@@ -351,6 +351,7 @@ function confirmSeedWords () {
log.debug(`background.clearSeedWordCache`)
return new Promise((resolve, reject) => {
background.clearSeedWordCache((err, account) => {
+ dispatch(actions.hideLoadingIndication())
if (err) {
dispatch(actions.displayWarning(err.message))
return reject(err)
@@ -361,9 +362,6 @@ function confirmSeedWords () {
resolve(account)
})
})
- .then(() => dispatch(setIsRevealingSeedWords(false)))
- .then(() => dispatch(actions.hideLoadingIndication()))
- .catch(() => dispatch(actions.hideLoadingIndication()))
}
}
@@ -448,13 +446,11 @@ function requestRevealSeed (password) {
}
dispatch(actions.showNewVaultSeed(result))
+ dispatch(actions.hideLoadingIndication())
resolve()
})
})
})
- .then(() => dispatch(setIsRevealingSeedWords(true)))
- .then(() => dispatch(actions.hideLoadingIndication()))
- .catch(() => dispatch(actions.hideLoadingIndication()))
}
}
@@ -1911,11 +1907,3 @@ function updateNetworkEndpointType (networkEndpointType) {
value: networkEndpointType,
}
}
-
-function setIsRevealingSeedWords (reveal) {
- return dispatch => {
- log.debug(`background.setIsRevealingSeedWords`)
- background.setIsRevealingSeedWords(reveal)
- return forceUpdateMetamaskState(dispatch)
- }
-}
diff --git a/ui/app/app.js b/ui/app/app.js
index 0b38b1326..e462701fa 100644
--- a/ui/app/app.js
+++ b/ui/app/app.js
@@ -56,20 +56,11 @@ const {
class App extends Component {
componentWillMount () {
- const {
- currentCurrency,
- setCurrentCurrencyToUSD,
- isRevealingSeedWords,
- clearSeedWords,
- } = this.props
+ const { currentCurrency, setCurrentCurrencyToUSD } = this.props
if (!currentCurrency) {
setCurrentCurrencyToUSD()
}
-
- if (isRevealingSeedWords) {
- clearSeedWords()
- }
}
renderRoutes () {
@@ -402,8 +393,6 @@ App.propTypes = {
isMouseUser: PropTypes.bool,
setMouseUserState: PropTypes.func,
t: PropTypes.func,
- isRevealingSeedWords: PropTypes.bool,
- clearSeedWords: PropTypes.func,
}
function mapStateToProps (state) {
@@ -484,7 +473,6 @@ function mapDispatchToProps (dispatch, ownProps) {
setCurrentCurrencyToUSD: () => dispatch(actions.setCurrentCurrency('usd')),
toggleAccountMenu: () => dispatch(actions.toggleAccountMenu()),
setMouseUserState: (isMouseUser) => dispatch(actions.setMouseUserState(isMouseUser)),
- clearSeedWords: () => dispatch(actions.confirmSeedWords()),
}
}