[PM-8833] Fixing issue that exists when user does not contain identity or card ciphers

This commit is contained in:
Cesar Gonzalez 2024-10-09 12:21:13 -05:00
parent 539207b73f
commit f38840eb24
No known key found for this signature in database
GPG Key ID: 3381A5457F8CCECF
1 changed files with 2 additions and 1 deletions

View File

@ -426,7 +426,8 @@ export class OverlayBackground implements OverlayBackgroundInterface {
for (let cipherIndex = 0; cipherIndex < cipherViews.length; cipherIndex++) {
const cipherView = cipherViews[cipherIndex];
if (
!this.cardAndIdentityCiphers?.has(cipherView) &&
this.cardAndIdentityCiphers &&
!this.cardAndIdentityCiphers.has(cipherView) &&
[CipherType.Card, CipherType.Identity].includes(cipherView.type)
) {
this.cardAndIdentityCiphers.add(cipherView);