From dcaf611f6a7da65e911f73cd311f502af07ec468 Mon Sep 17 00:00:00 2001 From: Arman Date: Thu, 4 Apr 2024 15:54:44 +0200 Subject: [PATCH] fix: support button breaking when no organization was set (e.g. account and onboarding pages) --- src/lib/components/support.svelte | 17 ++++++++++++++++- 1 file changed, 16 insertions(+), 1 deletion(-) diff --git a/src/lib/components/support.svelte b/src/lib/components/support.svelte index 6443ddf1e..9d79db0c6 100644 --- a/src/lib/components/support.svelte +++ b/src/lib/components/support.svelte @@ -13,6 +13,7 @@ import { BillingPlan } from '$lib/constants'; import ChangeOrganizationTierCloud from '$routes/console/changeOrganizationTierCloud.svelte'; import { trackEvent } from '$lib/actions/analytics'; + import CreateOrganizationCloud from '$routes/console/createOrganizationCloud.svelte'; export let show = false; @@ -55,7 +56,7 @@ }}> Contact our Support Team - {:else} + {:else if $organization?.$id} + {:else} + +

Create a Pro organization for personalized support from the Appwrite team

{/if} {/if}