diff --git a/src/app/payment/components/checkout/ProductCardComponent.tsx b/src/app/payment/components/checkout/ProductCardComponent.tsx index 393768c67..e2d7ae519 100644 --- a/src/app/payment/components/checkout/ProductCardComponent.tsx +++ b/src/app/payment/components/checkout/ProductCardComponent.tsx @@ -61,6 +61,11 @@ export const ProductFeaturesComponent = ({ const planAmount = getProductAmount(selectedPlan.decimalAmount, couponCodeData).toFixed(2); const upsellPlanAmount = upsellManager.amount && getProductAmount(upsellManager.amount, couponCodeData).toFixed(2); + const discountPercentage = + couponCodeData?.amountOff && couponCodeData?.amountOff < selectedPlan.amount + ? ((couponCodeData?.amountOff / selectedPlan.amount) * 100).toFixed(2) + : undefined; + return (
{translate('checkout.productCard.saving', { - percent: couponCodeData?.percentOff, + percent: couponCodeData?.percentOff ?? discountPercentage, })}