From 75c9f86cc4073891b0823307f68d13f563677c4e Mon Sep 17 00:00:00 2001 From: jaaaaavier Date: Thu, 9 Jul 2026 14:53:50 +0200 Subject: [PATCH] feat: ultiamte/antivirus LP fixes --- src/components/antivirus/AlternativeHeroSection.tsx | 2 +- src/components/antivirus/InfoSecction.tsx | 2 +- .../shared/pricing/PriceCard/HorizontalPriceCard.tsx | 4 +++- 3 files changed, 5 insertions(+), 3 deletions(-) diff --git a/src/components/antivirus/AlternativeHeroSection.tsx b/src/components/antivirus/AlternativeHeroSection.tsx index 752bf4dbc..74d0fab8c 100644 --- a/src/components/antivirus/AlternativeHeroSection.tsx +++ b/src/components/antivirus/AlternativeHeroSection.tsx @@ -47,7 +47,7 @@ const AlternativeHeroSection = ({ textContent, currentPrice, currency }: Alterna -
+
= ({ FirstComponent }) => { return ( -
+
{FirstComponent}
); diff --git a/src/components/shared/pricing/PriceCard/HorizontalPriceCard.tsx b/src/components/shared/pricing/PriceCard/HorizontalPriceCard.tsx index 42ef4ff6a..85fd0ef44 100644 --- a/src/components/shared/pricing/PriceCard/HorizontalPriceCard.tsx +++ b/src/components/shared/pricing/PriceCard/HorizontalPriceCard.tsx @@ -47,9 +47,11 @@ export const HorizontalPriceCard = ({ const contentText = require(`@/assets/lang/en/priceCard.json`); + const MIN_DISCOUNT_PERCENT_TO_SHOW = 1; const hasDiscount = decimalDiscountValue && decimalDiscountValue > 0; const discountedPrice = hasDiscount ? (Number(price) * decimalDiscountValue) / 100 : Number(price); const currentPrice = (Math.trunc(discountedPrice * 100) / 100).toFixed(2); + const showDiscount = Boolean(hasDiscount) && 100 - decimalDiscountValue! >= MIN_DISCOUNT_PERCENT_TO_SHOW; const cardLabel = { '5TB': contentText.productFeatures.planTypes.ultimate, @@ -102,7 +104,7 @@ export const HorizontalPriceCard = ({ {currency} {contentText.perMonth}

- {hasDiscount && ( + {showDiscount && (

{price} {currency}