mirror of
https://github.com/bitwarden/browser
synced 2025-12-17 16:53:34 +00:00
implement hasKey helper
This commit is contained in:
@@ -179,8 +179,8 @@ export class CipherService implements CipherServiceAbstraction {
|
||||
}
|
||||
|
||||
const decCiphers: CipherView[] = [];
|
||||
const key = await this.cryptoService.getKey();
|
||||
if (key == null) {
|
||||
const hasKey = await this.cryptoService.hasKey();
|
||||
if (!hasKey) {
|
||||
throw new Error('No key.');
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user