diff options
author | bitpshr <mail@bitpshr.net> | 2018-11-05 01:19:47 +0800 |
---|---|---|
committer | Dan Finlay <542863+danfinlay@users.noreply.github.com> | 2018-11-06 07:07:09 +0800 |
commit | 31cb111d2e98c17728a75ebe00430654d827e136 (patch) | |
tree | ff02c47dbafdac5c8c38f435da47362e6307b27b /app | |
parent | 9984f7edebb0de4432e152a7c6f0d93bb00b9da6 (diff) | |
download | tangerine-wallet-browser-31cb111d2e98c17728a75ebe00430654d827e136.tar.gz tangerine-wallet-browser-31cb111d2e98c17728a75ebe00430654d827e136.tar.zst tangerine-wallet-browser-31cb111d2e98c17728a75ebe00430654d827e136.zip |
Do not modify isApproved when locked
Diffstat (limited to 'app')
-rw-r--r-- | app/scripts/controllers/provider-approval.js | 3 |
1 files changed, 1 insertions, 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] } /** |