diff --git a/ghost/portal/src/components/common/PlansSection.js b/ghost/portal/src/components/common/PlansSection.js index 00030300ea..e8eef49270 100644 --- a/ghost/portal/src/components/common/PlansSection.js +++ b/ghost/portal/src/components/common/PlansSection.js @@ -299,15 +299,16 @@ function PriceLabel({currencySymbol, price, interval}) { function addDiscountToPlans(plans) { const filteredPlans = plans.filter(d => d.id !== 'free'); const monthlyPlan = plans.find((d) => { - return d.name === 'Monthly' && !d.description && d.interval === 'month'; + return d.name === 'Monthly' && d.interval === 'month'; }); const yearlyPlan = plans.find((d) => { - return d.name === 'Yearly' && !d.description && d.interval === 'year'; + return d.name === 'Yearly' && d.interval === 'year'; }); if (filteredPlans.length === 2 && monthlyPlan && yearlyPlan) { const discount = calculateDiscount(monthlyPlan.amount, yearlyPlan.amount); yearlyPlan.description = discount > 0 ? `${discount}% discount` : ''; + monthlyPlan.description = ''; } }