mirror of
https://github.com/bitwarden/browser
synced 2025-12-16 08:13:42 +00:00
use hasKey helper
This commit is contained in:
@@ -210,12 +210,12 @@ export default class MainBackground {
|
||||
}
|
||||
|
||||
const isAuthenticated = await this.userService.isAuthenticated();
|
||||
const key = await this.cryptoService.getKey();
|
||||
const hasKey = await this.cryptoService.hasKey();
|
||||
|
||||
let suffix = '';
|
||||
if (!isAuthenticated) {
|
||||
suffix = '_gray';
|
||||
} else if (!key) {
|
||||
} else if (!hasKey) {
|
||||
suffix = '_locked';
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user