From 94ba6c53a8064c5e3cf9e0cf43520a95b87ffcee Mon Sep 17 00:00:00 2001 From: kibwashere Date: Fri, 31 Jul 2026 11:17:17 +0200 Subject: [PATCH] fix: allow growth checkout tunnel with additional seats --- .../usePricingCheckoutModalState.ts | 11 ++++------- 1 file changed, 4 insertions(+), 7 deletions(-) diff --git a/apps/ui/src/components/page-builder/components/plans/strapi-plan-pricing-cards/usePricingCheckoutModalState.ts b/apps/ui/src/components/page-builder/components/plans/strapi-plan-pricing-cards/usePricingCheckoutModalState.ts index f7d4b2d..adcf7ba 100644 --- a/apps/ui/src/components/page-builder/components/plans/strapi-plan-pricing-cards/usePricingCheckoutModalState.ts +++ b/apps/ui/src/components/page-builder/components/plans/strapi-plan-pricing-cards/usePricingCheckoutModalState.ts @@ -186,18 +186,15 @@ export function buildCheckoutUrl({ } } + const planItemPriceId = + selectedSsoItemPriceId?.trim() || selectedPlanItemPriceId + const subscriptionItems: { itemPriceId: string; quantity?: number }[] = [ { - itemPriceId: selectedPlanItemPriceId, + itemPriceId: planItemPriceId, }, ] - if (selectedSsoItemPriceId?.trim()) { - subscriptionItems.push({ - itemPriceId: selectedSsoItemPriceId, - }) - } - if (additionalSeatItemPriceId && additionalSeats > 0) { subscriptionItems.push({ itemPriceId: additionalSeatItemPriceId,