diff options
author | Jacky Chan <jchan@uber.com> | 2017-08-23 19:04:11 +0800 |
---|---|---|
committer | Chi Kei Chan <chikeichan@gmail.com> | 2017-10-21 12:51:37 +0800 |
commit | 1a9b217558fd7a3a528a068c6820f2d905d62e9d (patch) | |
tree | 076102860067042a6be818eb41bb904fc4805463 /ui/app | |
parent | fd4fbdc0cd70e31764a497946f565757b204b616 (diff) | |
download | tangerine-wallet-browser-1a9b217558fd7a3a528a068c6820f2d905d62e9d.tar tangerine-wallet-browser-1a9b217558fd7a3a528a068c6820f2d905d62e9d.tar.gz tangerine-wallet-browser-1a9b217558fd7a3a528a068c6820f2d905d62e9d.tar.bz2 tangerine-wallet-browser-1a9b217558fd7a3a528a068c6820f2d905d62e9d.tar.lz tangerine-wallet-browser-1a9b217558fd7a3a528a068c6820f2d905d62e9d.tar.xz tangerine-wallet-browser-1a9b217558fd7a3a528a068c6820f2d905d62e9d.tar.zst tangerine-wallet-browser-1a9b217558fd7a3a528a068c6820f2d905d62e9d.zip |
Add BackupPhraseScreen
Diffstat (limited to 'ui/app')
-rw-r--r-- | ui/app/actions.js | 18 |
1 files changed, 11 insertions, 7 deletions
diff --git a/ui/app/actions.js b/ui/app/actions.js index f026fd0ab..ec18f099e 100644 --- a/ui/app/actions.js +++ b/ui/app/actions.js @@ -215,14 +215,18 @@ function confirmSeedWords () { return (dispatch) => { dispatch(actions.showLoadingIndication()) log.debug(`background.clearSeedWordCache`) - background.clearSeedWordCache((err, account) => { - dispatch(actions.hideLoadingIndication()) - if (err) { - return dispatch(actions.displayWarning(err.message)) - } + return new Promise((resolve, reject) => { + background.clearSeedWordCache((err, account) => { + dispatch(actions.hideLoadingIndication()) + if (err) { + dispatch(actions.displayWarning(err.message)) + reject(err) + } - log.info('Seed word cache cleared. ' + account) - dispatch(actions.showAccountDetail(account)) + log.info('Seed word cache cleared. ' + account) + dispatch(actions.showAccountDetail(account)) + resolve(account) + }) }) } } |