1
0
mirror of https://github.com/bitwarden/browser synced 2026-02-08 20:50:28 +00:00

do not render at-risk notification footer if there is no password change uri

This commit is contained in:
Jonathan Prusik
2025-05-16 14:21:19 -04:00
parent 5eef32c770
commit 613e8ad21b

View File

@@ -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}
</div>
`;
}