1
0
mirror of https://github.com/bitwarden/desktop.git synced 2024-06-26 10:36:19 +02:00

use hasKey helper

This commit is contained in:
Kyle Spearrin 2018-06-13 17:19:39 -04:00
parent bc3008c44f
commit 5589641a43

View File

@ -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()),
});
}