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:
@@ -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)
|
||||||
|
|||||||
Reference in New Issue
Block a user