mirror of
https://github.com/bitwarden/browser
synced 2026-01-05 18:13:26 +00:00
implement hasKey helper
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user