1
0
mirror of https://github.com/bitwarden/browser synced 2026-01-05 18:13:26 +00:00

implement hasKey helper

This commit is contained in:
Kyle Spearrin
2018-06-13 17:14:26 -04:00
parent eda99e4f12
commit 3303e60b40
7 changed files with 18 additions and 16 deletions

View File

@@ -36,8 +36,8 @@ export class LockService implements LockServiceAbstraction {
return;
}
const key = await this.cryptoService.getKey();
if (key == null) {
const hasKey = await this.cryptoService.hasKey();
if (!hasKey) {
// no key so no need to lock
return;
}