From 8c0bc7b3e2ecf945aa0a2de721a11e725e531a05 Mon Sep 17 00:00:00 2001 From: bitpshr Date: Thu, 16 May 2019 10:53:37 -0400 Subject: bugfix: show extension window if locked regardless of approval --- app/scripts/controllers/provider-approval.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'app/scripts/controllers/provider-approval.js') 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 } -- cgit v1.2.3