From fdfbbd4cf3116e3fa10500d37844543015a14460 Mon Sep 17 00:00:00 2001 From: Arman Date: Mon, 12 May 2025 17:59:19 +0200 Subject: [PATCH] fix: init bottom modal --- src/lib/components/bottomModalAlert.svelte | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/lib/components/bottomModalAlert.svelte b/src/lib/components/bottomModalAlert.svelte index d6984df9d..876b40575 100644 --- a/src/lib/components/bottomModalAlert.svelte +++ b/src/lib/components/bottomModalAlert.svelte @@ -113,7 +113,7 @@ function showUpgrade() { const plan = currentModalAlert.plan; - const organizationPlan = $organization.billingPlan; + const organizationPlan = $organization?.billingPlan; switch (plan) { case 'free': return false; @@ -131,7 +131,7 @@ }); -{#if filteredModalAlerts.length > 0 && currentModalAlert} +{#if filteredModalAlerts.length > 0 && currentModalAlert && !$page.url.pathname.includes('console/onboarding')} {@const shouldShowUpgrade = showUpgrade()}