aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorbitpshr <mail@bitpshr.net>2019-05-16 22:53:37 +0800
committerbitpshr <mail@bitpshr.net>2019-05-16 22:53:37 +0800
commit8c0bc7b3e2ecf945aa0a2de721a11e725e531a05 (patch)
treedf8f879ef74cb46a7ccea59c2ae46fa18e37b160
parenta34103987a5a3b75588eb23ab4e1a73d6669cbc2 (diff)
downloadtangerine-wallet-browser-8c0bc7b3e2ecf945aa0a2de721a11e725e531a05.tar.gz
tangerine-wallet-browser-8c0bc7b3e2ecf945aa0a2de721a11e725e531a05.tar.zst
tangerine-wallet-browser-8c0bc7b3e2ecf945aa0a2de721a11e725e531a05.zip
bugfix: show extension window if locked regardless of approval
-rw-r--r--app/scripts/controllers/provider-approval.js3
1 files changed, 2 insertions, 1 deletions
diff --git a/app/scripts/controllers/provider-approval.js b/app/scripts/controllers/provider-approval.js
index 8206b2f8a..06c499780 100644
--- a/app/scripts/controllers/provider-approval.js
+++ b/app/scripts/controllers/provider-approval.js
@@ -38,7 +38,8 @@ class ProviderApprovalController extends SafeEventEmitter {
// only handle requestAccounts
if (req.method !== 'eth_requestAccounts') return next()
// if already approved or privacy mode disabled, return early
- if (this.shouldExposeAccounts(origin)) {
+ const isUnlocked = this.keyringController.memStore.getState().isUnlocked
+ if (this.shouldExposeAccounts(origin) && isUnlocked) {
res.result = [this.preferencesController.getSelectedAddress()]
return
}