diff --git a/src/lib/components/support.svelte b/src/lib/components/support.svelte index 66d922d410..a584e2fe5b 100644 --- a/src/lib/components/support.svelte +++ b/src/lib/components/support.svelte @@ -5,17 +5,14 @@ import SupportWizard from '$routes/(console)/supportWizard.svelte'; import { showSupportModal } from '$routes/(console)/wizard/support/store'; import { isCloud } from '$lib/system'; - import { organization } from '$lib/stores/organization'; - import { BillingPlan } from '$lib/constants'; import { trackEvent } from '$lib/actions/analytics'; import { localeTimezoneName, utcHourToLocaleHour } from '$lib/helpers/date'; import { upgradeURL } from '$lib/stores/billing'; + import { currentPlan } from '$lib/stores/organization'; export let show = false; - $: isPaid = - $organization?.billingPlan === BillingPlan.PRO || - $organization?.billingPlan === BillingPlan.SCALE; + $: hasPremiumSupport = $currentPlan?.premiumSupport ?? false; $: supportTimings = `${utcHourToLocaleHour('16:00')} - ${utcHourToLocaleHour('00:00')} ${localeTimezoneName()}`; @@ -24,13 +21,13 @@

Premium support

- {#if isPaid} + {#if hasPremiumSupport}

Get personalized support from the Appwrite team from {supportTimings}

{/if}
- {#if $organization?.billingPlan === BillingPlan.FREE} + {#if !hasPremiumSupport}