aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKevin Serrano <kevgagser@gmail.com>2017-03-21 21:57:49 +0800
committerKevin Serrano <kevgagser@gmail.com>2017-03-21 21:57:49 +0800
commit889132b16cbafbb5a8e35dd2cf6acc9a7fe3d5fa (patch)
tree44867b4ec1a214fd59ddd7a3bde903dbca6497b1
parent0c82c520fe685484e8b1ccf0d13d543e1d505635 (diff)
downloadtangerine-wallet-browser-889132b16cbafbb5a8e35dd2cf6acc9a7fe3d5fa.tar
tangerine-wallet-browser-889132b16cbafbb5a8e35dd2cf6acc9a7fe3d5fa.tar.gz
tangerine-wallet-browser-889132b16cbafbb5a8e35dd2cf6acc9a7fe3d5fa.tar.bz2
tangerine-wallet-browser-889132b16cbafbb5a8e35dd2cf6acc9a7fe3d5fa.tar.lz
tangerine-wallet-browser-889132b16cbafbb5a8e35dd2cf6acc9a7fe3d5fa.tar.xz
tangerine-wallet-browser-889132b16cbafbb5a8e35dd2cf6acc9a7fe3d5fa.tar.zst
tangerine-wallet-browser-889132b16cbafbb5a8e35dd2cf6acc9a7fe3d5fa.zip
Add action to hide loading indication on an incorrect pw.
-rw-r--r--ui/app/actions.js7
1 files changed, 5 insertions, 2 deletions
diff --git a/ui/app/actions.js b/ui/app/actions.js
index b09021577..13a9cf547 100644
--- a/ui/app/actions.js
+++ b/ui/app/actions.js
@@ -269,7 +269,10 @@ function requestRevealSeed (password) {
dispatch(actions.showLoadingIndication())
log.debug(`background.submitPassword`)
background.submitPassword(password, (err) => {
- if (err) return dispatch(actions.displayWarning(err.message))
+ if (err) {
+ dispatch(actions.hideLoadingIndication())
+ return dispatch(actions.displayWarning(err.message))
+ }
log.debug(`background.placeSeedWords`)
background.placeSeedWords((err) => {
if (err) return dispatch(actions.displayWarning(err.message))
@@ -698,7 +701,7 @@ function setRpcTarget (newRpc) {
}
}
-// Calls the addressBookController to add a new address.
+// Calls the addressBookController to add a new address.
function addToAddressBook (recipient, nickname) {
log.debug(`background.addToAddressBook`)
return (dispatch) => {