mirror of
https://github.com/bitwarden/browser.git
synced 2024-11-02 08:40:08 +01:00
use hasKey helper
This commit is contained in:
parent
bc3008c44f
commit
5589641a43
@ -145,7 +145,7 @@ export class AppComponent implements OnInit {
|
||||
private async updateAppMenu() {
|
||||
this.messagingService.send('updateAppMenu', {
|
||||
isAuthenticated: await this.userService.isAuthenticated(),
|
||||
isLocked: (await this.cryptoService.getKey()) == null,
|
||||
isLocked: !(await this.cryptoService.hasKey()),
|
||||
});
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user