Skip to content

Commit 07d9fc5

Browse files
fix: Consider client active once it is open and unlocked
1 parent 709e4d7 commit 07d9fc5

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

app/scripts/metamask-controller.js

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7151,7 +7151,11 @@ export default class MetamaskController extends EventEmitter {
71517151
return !isUnlocked;
71527152
},
71537153
getIsActive: () => {
7154-
return this._isClientOpen;
7154+
const { isUnlocked } = this.controllerMessenger.call(
7155+
'KeyringController:getState',
7156+
);
7157+
7158+
return this._isClientOpen && isUnlocked;
71557159
},
71567160
getInterfaceState: (...args) =>
71577161
this.controllerMessenger.call(

0 commit comments

Comments
 (0)