diff --git a/src/app/app.component.ts b/src/app/app.component.ts index a21f7818d3..507c8e98bf 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()), }); }