Skip to content

Commit

Permalink
refactor: use state value for isUnlocked
Browse files Browse the repository at this point in the history
  • Loading branch information
mikesposito committed May 19, 2023
1 parent d59cc8f commit 77c7655
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/keyring-controller/src/KeyringController.ts
Original file line number Diff line number Diff line change
Expand Up @@ -357,7 +357,7 @@ export class KeyringController extends BaseControllerV2<
* @returns Boolean returning true if the vault is unlocked.
*/
isUnlocked(): boolean {
return this.#keyring.memStore.getState().isUnlocked;
return this.state.isUnlocked;
}

/**
Expand Down

0 comments on commit 77c7655

Please sign in to comment.