mirror of
https://github.com/kremalicious/metamask-extension.git
synced 2024-11-26 04:20:53 +01:00
Do not modify isApproved when locked
This commit is contained in:
parent
9984f7edeb
commit
31cb111d2e
@ -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]
|
||||
}
|
||||
|
||||
/**
|
||||
|
Loading…
Reference in New Issue
Block a user