Do not modify isApproved when locked

feature/default_network_editable
bitpshr 6 years ago committed by Dan Finlay
parent 9984f7edeb
commit 31cb111d2e
  1. 3
      app/scripts/controllers/provider-approval.js

@ -129,9 +129,8 @@ class ProviderApprovalController {
* @returns {boolean} - True if the origin has been approved * @returns {boolean} - True if the origin has been approved
*/ */
isApproved (origin) { isApproved (origin) {
const isUnlocked = this.keyringController.memStore.getState().isUnlocked
const privacyMode = this.preferencesController.getFeatureFlags().privacyMode const privacyMode = this.preferencesController.getFeatureFlags().privacyMode
return !privacyMode || (isUnlocked && this.approvedOrigins[origin]) return !privacyMode || this.approvedOrigins[origin]
} }
/** /**

Loading…
Cancel
Save