mirror of
https://github.com/kremalicious/metamask-extension.git
synced 2024-11-28 23:06:37 +01:00
Merge pull request #6619 from MetaMask/bugfix/enable-locked
bugfix: show extension window if locked regardless of approval
This commit is contained in:
commit
e880e2790f
@ -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
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user