{campaign?.cta}
@@ -396,6 +404,8 @@ {/if} {#if selectedOrgId === newOrgId} Create organization + {:else if isUpgrade()} + Upgrade {:else} Apply {/if} diff --git a/src/routes/(console)/create-organization/+page.svelte b/src/routes/(console)/create-organization/+page.svelte index 28e75e0a1..a45c2cdc3 100644 --- a/src/routes/(console)/create-organization/+page.svelte +++ b/src/routes/(console)/create-organization/+page.svelte @@ -122,7 +122,7 @@ selectedPlan, paymentMethodId, null, - selectedCoupon.code ? selectedCoupon.code : null, + selectedCoupon?.code, collaborators, billingBudget, taxId diff --git a/src/routes/(console)/organization-[organization]/+page.svelte b/src/routes/(console)/organization-[organization]/+page.svelte index 19090c22a..c8ff1fa84 100644 --- a/src/routes/(console)/organization-[organization]/+page.svelte +++ b/src/routes/(console)/organization-[organization]/+page.svelte @@ -19,8 +19,7 @@ import { Submit, trackError, trackEvent } from '$lib/actions/analytics'; import { sdk } from '$lib/stores/sdk'; import { loading } from '$routes/store'; - import type { Models } from '@appwrite.io/console'; - import { ID, Region } from '@appwrite.io/console'; + import { ID, Region, type Models } from '@appwrite.io/console'; import { openImportWizard } from '../project-[region]-[project]/settings/migrations/(import)'; import { readOnly } from '$lib/stores/billing'; import { onMount, type ComponentType } from 'svelte'; @@ -162,23 +161,28 @@