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