aboutsummaryrefslogtreecommitdiffstats
path: root/ui/app/actions.js
diff options
context:
space:
mode:
authorkumavis <aaron@kumavis.me>2018-06-07 03:05:38 +0800
committerkumavis <aaron@kumavis.me>2018-06-07 03:05:38 +0800
commit2198276bd533bec767cad954ef8b21c47c0f8c09 (patch)
tree6e4ff66926a954815a8421c0062012842f236785 /ui/app/actions.js
parentffb8fa16497d0c4a48e3bd4b918dde1ac3adcd5d (diff)
parent1fb408f62eb081311937420bb42da6c835510590 (diff)
downloadtangerine-wallet-browser-2198276bd533bec767cad954ef8b21c47c0f8c09.tar.gz
tangerine-wallet-browser-2198276bd533bec767cad954ef8b21c47c0f8c09.tar.zst
tangerine-wallet-browser-2198276bd533bec767cad954ef8b21c47c0f8c09.zip
Merge branch 'develop' of github.com:MetaMask/metamask-extension into network-remove-provider-engine
Diffstat (limited to 'ui/app/actions.js')
-rw-r--r--ui/app/actions.js10
1 files changed, 6 insertions, 4 deletions
diff --git a/ui/app/actions.js b/ui/app/actions.js
index a9372d6f3..07d7bd5d1 100644
--- a/ui/app/actions.js
+++ b/ui/app/actions.js
@@ -550,10 +550,12 @@ function importNewAccount (strategy, args) {
}
dispatch(actions.hideLoadingIndication())
dispatch(actions.updateMetamaskState(newState))
- dispatch({
- type: actions.SHOW_ACCOUNT_DETAIL,
- value: newState.selectedAddress,
- })
+ if (newState.selectedAddress) {
+ dispatch({
+ type: actions.SHOW_ACCOUNT_DETAIL,
+ value: newState.selectedAddress,
+ })
+ }
return newState
}
}