From f38840eb24201de99a05545c031ca100fe6b2b44 Mon Sep 17 00:00:00 2001 From: Cesar Gonzalez Date: Wed, 9 Oct 2024 12:21:13 -0500 Subject: [PATCH] [PM-8833] Fixing issue that exists when user does not contain identity or card ciphers --- apps/browser/src/autofill/background/overlay.background.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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);