diff --git a/apps/browser/src/autofill/background/overlay.background.ts b/apps/browser/src/autofill/background/overlay.background.ts index 8b38802bf3..8f60121328 100644 --- a/apps/browser/src/autofill/background/overlay.background.ts +++ b/apps/browser/src/autofill/background/overlay.background.ts @@ -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);