From b21f3c03ba7a36235f42073dca2761fae01ca61b Mon Sep 17 00:00:00 2001 From: Darshan Date: Sun, 18 Jan 2026 12:57:51 +0530 Subject: [PATCH] address comments. --- src/lib/stores/billing.ts | 2 +- src/routes/(console)/+layout.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/lib/stores/billing.ts b/src/lib/stores/billing.ts index cd9365261..ce2eee6dd 100644 --- a/src/lib/stores/billing.ts +++ b/src/lib/stores/billing.ts @@ -92,7 +92,7 @@ export function planHasGroup(billingPlanId: string, group: BillingPlanGroup) { export function getBasePlanFromGroup(billingPlanGroup: BillingPlanGroup): Models.BillingPlan { const plansInfoStore = getPlansInfoStore(); - const proPlans = Array.from(plansInfoStore?.values()).filter( + const proPlans = Array.from(plansInfoStore.values()).filter( (plan) => plan.group === billingPlanGroup ); diff --git a/src/routes/(console)/+layout.ts b/src/routes/(console)/+layout.ts index 19dba97b5..3d1ad1093 100644 --- a/src/routes/(console)/+layout.ts +++ b/src/routes/(console)/+layout.ts @@ -59,7 +59,7 @@ export const load: LayoutLoad = async ({ depends, parent }) => { } // just in case! - plansInfoStore.set(plansInfo); + plansInfoStore.set(fallbackPlansInfoArray); return { roles: [],