From 5589641a438678b8419d4a84fdf1a28fb80f456e Mon Sep 17 00:00:00 2001 From: Kyle Spearrin Date: Wed, 13 Jun 2018 17:19:39 -0400 Subject: [PATCH] use hasKey helper --- src/app/app.component.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/app/app.component.ts b/src/app/app.component.ts index a21f7818d30..507c8e98bf0 100644 --- a/src/app/app.component.ts +++ b/src/app/app.component.ts @@ -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()), }); }