From 613e8ad21be71a20e6da46beae63f23c134661f6 Mon Sep 17 00:00:00 2001 From: Jonathan Prusik Date: Fri, 16 May 2025 14:21:19 -0400 Subject: [PATCH] do not render at-risk notification footer if there is no password change uri --- .../notification/at-risk-password/container.ts | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) diff --git a/apps/browser/src/autofill/content/components/notification/at-risk-password/container.ts b/apps/browser/src/autofill/content/components/notification/at-risk-password/container.ts index 1b50567a9bf..64382bb4653 100644 --- a/apps/browser/src/autofill/content/components/notification/at-risk-password/container.ts +++ b/apps/browser/src/autofill/content/components/notification/at-risk-password/container.ts @@ -1,4 +1,4 @@ -import { html } from "lit"; +import { html, nothing } from "lit"; import { ThemeTypes } from "@bitwarden/common/platform/enums"; @@ -50,11 +50,13 @@ export function AtRiskNotification({ organizationName, ), })} - ${AtRiskNotificationFooter({ - i18n, - theme, - passwordChangeUri: params?.passwordChangeUri, - })} + ${passwordChangeUri + ? AtRiskNotificationFooter({ + i18n, + theme, + passwordChangeUri: params?.passwordChangeUri, + }) + : nothing} `; }