1
0
mirror of https://github.com/bitwarden/browser synced 2025-12-13 14:53:33 +00:00

account for deleted ciphers for empty vault nudge (#15014)

This commit is contained in:
Nick Krantz
2025-06-04 08:09:14 -05:00
committed by GitHub
parent 65f4ff6909
commit 1bd77fec7a

View File

@@ -30,10 +30,7 @@ export class EmptyVaultNudgeService extends DefaultSingleNudgeService {
this.collectionService.decryptedCollections$, this.collectionService.decryptedCollections$,
]).pipe( ]).pipe(
switchMap(([nudgeStatus, ciphers, orgs, collections]) => { switchMap(([nudgeStatus, ciphers, orgs, collections]) => {
const filteredCiphers = ciphers?.filter((cipher) => { const vaultHasContents = !(ciphers == null || ciphers.length === 0);
return cipher.deletedDate == null;
});
const vaultHasContents = !(filteredCiphers == null || filteredCiphers.length === 0);
if (orgs == null || orgs.length === 0) { if (orgs == null || orgs.length === 0) {
return nudgeStatus.hasBadgeDismissed || nudgeStatus.hasSpotlightDismissed return nudgeStatus.hasBadgeDismissed || nudgeStatus.hasSpotlightDismissed
? of(nudgeStatus) ? of(nudgeStatus)