aboutsummaryrefslogtreecommitdiffstats
path: root/ui/app/actions.js
diff options
context:
space:
mode:
authorDan Finlay <dan@danfinlay.com>2016-11-22 12:08:36 +0800
committerDan Finlay <dan@danfinlay.com>2016-11-22 12:08:36 +0800
commitea56426b2355c1076c18256fb0b4e74f47ff4b39 (patch)
tree08b86f5f97838c863193d5e8bd996807da36cc23 /ui/app/actions.js
parentecfda5bcc54bc444f3620a18a561847d0d2634dd (diff)
downloadtangerine-wallet-browser-ea56426b2355c1076c18256fb0b4e74f47ff4b39.tar
tangerine-wallet-browser-ea56426b2355c1076c18256fb0b4e74f47ff4b39.tar.gz
tangerine-wallet-browser-ea56426b2355c1076c18256fb0b4e74f47ff4b39.tar.bz2
tangerine-wallet-browser-ea56426b2355c1076c18256fb0b4e74f47ff4b39.tar.lz
tangerine-wallet-browser-ea56426b2355c1076c18256fb0b4e74f47ff4b39.tar.xz
tangerine-wallet-browser-ea56426b2355c1076c18256fb0b4e74f47ff4b39.tar.zst
tangerine-wallet-browser-ea56426b2355c1076c18256fb0b4e74f47ff4b39.zip
Use callback in placeSeedWord method.
When displaying seed words, we were not using a callback, which had some race condition potential. This is simply a little cleaner and more correct. Fixes #842
Diffstat (limited to 'ui/app/actions.js')
-rw-r--r--ui/app/actions.js6
1 files changed, 4 insertions, 2 deletions
diff --git a/ui/app/actions.js b/ui/app/actions.js
index e69b743e9..4a5507d33 100644
--- a/ui/app/actions.js
+++ b/ui/app/actions.js
@@ -221,9 +221,11 @@ function requestRevealSeed (password) {
return (dispatch) => {
dispatch(actions.showLoadingIndication())
background.submitPassword(password, (err) => {
- dispatch(actions.hideLoadingIndication())
if (err) return dispatch(actions.displayWarning(err.message))
- background.placeSeedWords()
+ background.placeSeedWords((err) => {
+ if (err) return dispatch(actions.displayWarning(err.message))
+ dispatch(actions.hideLoadingIndication())
+ })
})
}
}