aboutsummaryrefslogtreecommitdiffstats
path: root/ui/app/actions.js
diff options
context:
space:
mode:
authorDan Finlay <dan@danfinlay.com>2016-11-02 08:00:17 +0800
committerDan Finlay <dan@danfinlay.com>2016-11-02 08:00:17 +0800
commitb5f6ef8c013f2f742546a04e148bac99fbc4691c (patch)
treefcd77a4e15ef11fb168ee6dc82f1a3015bcd3b7f /ui/app/actions.js
parent72729060dc8366dbe965bd66c3b98b88bdb21830 (diff)
downloadtangerine-wallet-browser-b5f6ef8c013f2f742546a04e148bac99fbc4691c.tar
tangerine-wallet-browser-b5f6ef8c013f2f742546a04e148bac99fbc4691c.tar.gz
tangerine-wallet-browser-b5f6ef8c013f2f742546a04e148bac99fbc4691c.tar.bz2
tangerine-wallet-browser-b5f6ef8c013f2f742546a04e148bac99fbc4691c.tar.lz
tangerine-wallet-browser-b5f6ef8c013f2f742546a04e148bac99fbc4691c.tar.xz
tangerine-wallet-browser-b5f6ef8c013f2f742546a04e148bac99fbc4691c.tar.zst
tangerine-wallet-browser-b5f6ef8c013f2f742546a04e148bac99fbc4691c.zip
Fixed bugs related to clearing caches when restoring to a new vault
Diffstat (limited to 'ui/app/actions.js')
-rw-r--r--ui/app/actions.js5
1 files changed, 3 insertions, 2 deletions
diff --git a/ui/app/actions.js b/ui/app/actions.js
index 0586e07a3..8218e05ef 100644
--- a/ui/app/actions.js
+++ b/ui/app/actions.js
@@ -161,7 +161,7 @@ function tryUnlockMetamask (password) {
background.submitPassword(password, (err, newState) => {
dispatch(actions.hideLoadingIndication())
if (err) {
- dispatch(actions.unlockFailed())
+ dispatch(actions.unlockFailed(err.message))
} else {
dispatch(this.updateMetamaskState(newState))
let selectedAccount
@@ -407,9 +407,10 @@ function unlockInProgress () {
}
}
-function unlockFailed () {
+function unlockFailed (message) {
return {
type: actions.UNLOCK_FAILED,
+ value: message,
}
}