diff --git a/ghost/portal/src/components/common/PlansSection.js b/ghost/portal/src/components/common/PlansSection.js index 556ad413a7..bd780e8dd0 100644 --- a/ghost/portal/src/components/common/PlansSection.js +++ b/ghost/portal/src/components/common/PlansSection.js @@ -1,7 +1,7 @@ import React, {useContext} from 'react'; import AppContext from '../../AppContext'; import calculateDiscount from '../../utils/discount'; -import {isCookiesDisabled, formatNumber, hasOnlyFreePlan} from '../../utils/helpers'; +import {isCookiesDisabled, formatNumber, hasOnlyFreePlan, hasBenefits} from '../../utils/helpers'; export const PlanSectionStyles = ` .gh-portal-plans-container { @@ -433,6 +433,7 @@ function PlanOptions({plans, selectedPlan, onPlanSelect, changePlan}) { const {site} = useContext(AppContext); const {free_price_name: freePriceName, free_price_description: freePriceDescription} = site; addDiscountToPlans(plans); + const _hasBenefits = hasBenefits({prices: plans}); return plans.map(({name, currency_symbol: currencySymbol, amount, description, interval, id}) => { const price = amount / 100; const isChecked = selectedPlan === id; @@ -458,9 +459,7 @@ function PlanOptions({plans, selectedPlan, onPlanSelect, changePlan}) {