diff options
author | Dan Finlay <dan@danfinlay.com> | 2016-05-12 13:21:10 +0800 |
---|---|---|
committer | Dan Finlay <dan@danfinlay.com> | 2016-05-12 13:21:10 +0800 |
commit | 29facfe4d6194fe519c906983682a655f8fb6406 (patch) | |
tree | d2f910a48ff61c4a12c4c7059027686bc3b1b8d0 /ui/app/actions.js | |
parent | b628df017f14c38f68c3048ef503ce8722f07f3b (diff) | |
download | tangerine-wallet-browser-29facfe4d6194fe519c906983682a655f8fb6406.tar.gz tangerine-wallet-browser-29facfe4d6194fe519c906983682a655f8fb6406.tar.zst tangerine-wallet-browser-29facfe4d6194fe519c906983682a655f8fb6406.zip |
Fix more transition bugs
Diffstat (limited to 'ui/app/actions.js')
-rw-r--r-- | ui/app/actions.js | 13 |
1 files changed, 7 insertions, 6 deletions
diff --git a/ui/app/actions.js b/ui/app/actions.js index dbcf3e577..45af35e67 100644 --- a/ui/app/actions.js +++ b/ui/app/actions.js @@ -312,19 +312,20 @@ function backToAccountDetail(address) { value: address, } } -function clearSeedWordCache() { +function clearSeedWordCache(account) { return { - type: this.CLEAR_SEED_WORD_CACHE + type: this.CLEAR_SEED_WORD_CACHE, + value: account, } } function confirmSeedWords() { return (dispatch) => { dispatch(this.showLoadingIndication()) - _accountManager.clearSeedWordCache((err, accounts) => { - dispatch(this.clearSeedWordCache()) - console.log('Seed word cache cleared.') - dispatch(this.showAccountDetail(accounts[0].address)) + _accountManager.clearSeedWordCache((err, account) => { + dispatch(this.clearSeedWordCache(account)) + console.log('Seed word cache cleared. ' + account) + dispatch(this.showAccountDetail(account)) }) } } |