aboutsummaryrefslogtreecommitdiffstats
path: root/ui/app/actions.js
diff options
context:
space:
mode:
authorDan Finlay <dan@danfinlay.com>2016-05-12 13:21:10 +0800
committerDan Finlay <dan@danfinlay.com>2016-05-12 13:21:10 +0800
commit29facfe4d6194fe519c906983682a655f8fb6406 (patch)
treed2f910a48ff61c4a12c4c7059027686bc3b1b8d0 /ui/app/actions.js
parentb628df017f14c38f68c3048ef503ce8722f07f3b (diff)
downloadtangerine-wallet-browser-29facfe4d6194fe519c906983682a655f8fb6406.tar
tangerine-wallet-browser-29facfe4d6194fe519c906983682a655f8fb6406.tar.gz
tangerine-wallet-browser-29facfe4d6194fe519c906983682a655f8fb6406.tar.bz2
tangerine-wallet-browser-29facfe4d6194fe519c906983682a655f8fb6406.tar.lz
tangerine-wallet-browser-29facfe4d6194fe519c906983682a655f8fb6406.tar.xz
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.js13
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))
})
}
}