Skip to content

Commit

Permalink
fix: vsf expired messaging issue
Browse files Browse the repository at this point in the history
  • Loading branch information
jajjibhai008 committed Oct 31, 2024
1 parent 0c14daf commit f22dccb
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions src/components/expired-subscription-modal/index.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ const ExpiredSubscriptionModal = () => {
const { data: { customerAgreement, subscriptionLicense, subscriptionPlan } } = useSubscriptions();
const [isOpen] = useToggle(true);
const displaySubscriptionExpirationModal = (
customerAgreement?.hasCustomLicenseExpirationMessaging
customerAgreement?.hasCustomLicenseExpirationMessagingV2
&& subscriptionLicense && !subscriptionPlan.isCurrent
);

Expand All @@ -18,21 +18,21 @@ const ExpiredSubscriptionModal = () => {

return (
<AlertModal
title={<h3 className="mb-2">{customerAgreement.modalHeaderText}</h3>}
title={<h3 className="mb-2">{customerAgreement.modalHeaderTextV2}</h3>}
isOpen={isOpen}
isBlocking
footerNode={(
<ActionRow>
<Button href={customerAgreement.urlForButtonInModal}>
{customerAgreement.buttonLabelInModal}
<Button href={customerAgreement.urlForButtonInModalV2}>
{customerAgreement.buttonLabelInModalV2}
</Button>
</ActionRow>
)}
>
{/* eslint-disable-next-line react/no-danger */}
<div dangerouslySetInnerHTML={{
__html: DOMPurify.sanitize(
customerAgreement.expiredSubscriptionModalMessaging,
customerAgreement.expiredSubscriptionModalMessagingV2,
{ USE_PROFILES: { html: true } },
),
}}
Expand Down

0 comments on commit f22dccb

Please sign in to comment.