From 6746ae385991ece3b2e3935251fbda8b5cf8c14f Mon Sep 17 00:00:00 2001 From: giancarlo Date: Fri, 10 May 2024 10:51:01 +0700 Subject: [PATCH] Update condition for rendering PlanIntervalSwitcher Changed the condition to ensure PlanIntervalSwitcher is only rendered when there is more than one interval. This avoids unnecessary render when there's only a single interval. --- packages/billing/gateway/src/components/pricing-table.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/billing/gateway/src/components/pricing-table.tsx b/packages/billing/gateway/src/components/pricing-table.tsx index 40770711d..6239187c4 100644 --- a/packages/billing/gateway/src/components/pricing-table.tsx +++ b/packages/billing/gateway/src/components/pricing-table.tsx @@ -53,7 +53,7 @@ export function PricingTable({ return (
- {intervals.length ? ( + {intervals.length > 1 ? (