diff --git a/src/routes/(console)/organization-[organization]/change-plan/+page.svelte b/src/routes/(console)/organization-[organization]/change-plan/+page.svelte index 584c37122..da7ce9329 100644 --- a/src/routes/(console)/organization-[organization]/change-plan/+page.svelte +++ b/src/routes/(console)/organization-[organization]/change-plan/+page.svelte @@ -274,8 +274,8 @@ } } - $: isUpgrade = $plansInfo.get(billingPlan).order > $currentPlan.order; - $: isDowngrade = $plansInfo.get(billingPlan).order < $currentPlan.order; + $: isUpgrade = $plansInfo.get(billingPlan)?.order > $currentPlan.order; + $: isDowngrade = $plansInfo.get(billingPlan)?.order < $currentPlan.order; $: if (billingPlan !== BillingPlan.FREE) { loadPaymentMethods(); }