From 79dec66713a12b2417e42579ed0cd5947593db1f Mon Sep 17 00:00:00 2001 From: Darshan Date: Tue, 23 Dec 2025 13:09:19 +0530 Subject: [PATCH] fix: temporary hot fix for group. --- src/lib/stores/billing.ts | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/lib/stores/billing.ts b/src/lib/stores/billing.ts index 06c4d13fd..a920e7708 100644 --- a/src/lib/stores/billing.ts +++ b/src/lib/stores/billing.ts @@ -89,8 +89,12 @@ export function planHasGroup(billingPlanId: string, group: BillingPlanGroup) { export function getBasePlanFromGroup(billingPlanGroup: BillingPlanGroup): Models.BillingPlan { const plansInfoStore = get(plansInfo); + // hot fix for now, starter doesn't have a group atm. + const correctBillingPlanGroup = + billingPlanGroup === BillingPlanGroup.Starter ? null : billingPlanGroup; + const proPlans = Array.from(plansInfoStore.values()).filter( - (plan) => plan.group === billingPlanGroup + (plan) => plan.group === correctBillingPlanGroup ); return proPlans.sort((a, b) => a.order - b.order)[0];