1
0
mirror of https://github.com/bitwarden/browser synced 2025-12-16 08:13:42 +00:00

use hasKey helper

This commit is contained in:
Kyle Spearrin
2018-06-13 17:19:58 -04:00
parent 010188545e
commit 2cbb7788f4
2 changed files with 4 additions and 4 deletions

View File

@@ -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';
}