diff --git a/app/frontend/src/javascript/components/plans/plans-list.tsx b/app/frontend/src/javascript/components/plans/plans-list.tsx index 70431c3f3..d68c0fcfe 100644 --- a/app/frontend/src/javascript/components/plans/plans-list.tsx +++ b/app/frontend/src/javascript/components/plans/plans-list.tsx @@ -192,10 +192,11 @@ const PlansList: React.FC = ({ onError, onPlanSelection, onLogin return (
{Array.from(plans).sort(compareCategories).map(([categoryId, plansByCategory]) => { + const categoryPlans = plansByCategory.filter(filterPlan); return (
- {!!categoryId &&

{ categoryName(categoryId) }

} - {renderPlans(plansByCategory)} + {!!categoryId && categoryPlans.length > 0 &&

{ categoryName(categoryId) }

} + {renderPlans(categoryPlans)}
) })} @@ -209,10 +210,7 @@ const PlansList: React.FC = ({ onError, onPlanSelection, onLogin const renderPlans = (categoryPlans: Array): ReactNode => { return (
- {categoryPlans.length === 0 && - {t('app.public.plans.no_plans')} - } - {categoryPlans.filter(filterPlan).sort(comparePlans).map(plan => ( + {categoryPlans.length > 0 && categoryPlans.sort(comparePlans).map(plan => (