mirror of
https://github.com/bitwarden/browser
synced 2025-12-15 07:43:35 +00:00
use hasKey helper
This commit is contained in:
@@ -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()),
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user