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.
This commit is contained in:
giancarlo
2024-05-10 10:51:01 +07:00
parent aa01436f0d
commit 6746ae3859

View File

@@ -53,7 +53,7 @@ export function PricingTable({
return (
<div className={'flex flex-col space-y-8 xl:space-y-12'}>
<div className={'flex justify-center'}>
{intervals.length ? (
{intervals.length > 1 ? (
<PlanIntervalSwitcher
intervals={intervals}
interval={interval}