mirror of
https://github.com/bitwarden/jslib
synced 2025-12-26 05:03:41 +00:00
Fix sends always coming back as empty in browser
This commit is contained in:
@@ -96,11 +96,12 @@ export class SendService implements SendServiceAbstraction {
|
||||
}
|
||||
|
||||
async getAllDecrypted(): Promise<SendView[]> {
|
||||
const decSends = await this.stateService.getDecryptedSends() ?? [];
|
||||
let decSends = await this.stateService.getDecryptedSends();
|
||||
if (decSends != null) {
|
||||
return decSends;
|
||||
}
|
||||
|
||||
decSends = [];
|
||||
const hasKey = await this.cryptoService.hasKey();
|
||||
if (!hasKey) {
|
||||
throw new Error('No key.');
|
||||
|
||||
Reference in New Issue
Block a user