From eb189c804546d0bac3eb97ac0af34889ca28299c Mon Sep 17 00:00:00 2001 From: Sag Date: Thu, 25 Jan 2024 18:17:11 +0100 Subject: [PATCH] Fixed default amounts in tier previews (#19582) fixes ENG-558 --- .../settings/membership/tiers/TierDetailPreview.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/apps/admin-x-settings/src/components/settings/membership/tiers/TierDetailPreview.tsx b/apps/admin-x-settings/src/components/settings/membership/tiers/TierDetailPreview.tsx index a1d8d7a668..e9fbe60479 100644 --- a/apps/admin-x-settings/src/components/settings/membership/tiers/TierDetailPreview.tsx +++ b/apps/admin-x-settings/src/components/settings/membership/tiers/TierDetailPreview.tsx @@ -80,8 +80,8 @@ const TierDetailPreview: React.FC = ({tier, isFreeTier}) const currencySymbol = currency ? getSymbol(currency) : '$'; const benefits = tier?.benefits || []; - const monthlyPrice = currencyToDecimal(tier?.monthly_price || 0); - const yearlyPrice = currencyToDecimal(tier?.yearly_price || 0); + const monthlyPrice = currencyToDecimal(tier?.monthly_price ?? 500); + const yearlyPrice = currencyToDecimal(tier?.yearly_price ?? 5000); const yearlyDiscount = tier?.monthly_price && tier?.yearly_price ? Math.ceil(((monthlyPrice * 12 - yearlyPrice) / (monthlyPrice * 12)) * 100) : 0;