From 31cb111d2e98c17728a75ebe00430654d827e136 Mon Sep 17 00:00:00 2001 From: bitpshr Date: Sun, 4 Nov 2018 12:19:47 -0500 Subject: [PATCH] Do not modify isApproved when locked --- app/scripts/controllers/provider-approval.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/app/scripts/controllers/provider-approval.js b/app/scripts/controllers/provider-approval.js index 10b971a73..728361c79 100644 --- a/app/scripts/controllers/provider-approval.js +++ b/app/scripts/controllers/provider-approval.js @@ -129,9 +129,8 @@ class ProviderApprovalController { * @returns {boolean} - True if the origin has been approved */ isApproved (origin) { - const isUnlocked = this.keyringController.memStore.getState().isUnlocked const privacyMode = this.preferencesController.getFeatureFlags().privacyMode - return !privacyMode || (isUnlocked && this.approvedOrigins[origin]) + return !privacyMode || this.approvedOrigins[origin] } /**