fix: onboarding price

This commit is contained in:
Torsten Dittmann committed 2024-02-12 18:16:03 +00:00
1 parent 6c69f5bc98
commit 88f6611317
1 file changed
+9 -3
+9 -3
View File
@@ -16,7 +16,7 @@
import { ID } from '@appwrite.io/console';
import { onMount } from 'svelte';
import CreateOrganizationCloud from '../createOrganizationCloud.svelte';
import { tierToPlan, type Tier } from '$lib/stores/billing';
import { tierToPlan, type Tier, plansInfo } from '$lib/stores/billing';
import { createOrganization } from '../wizard/cloudOrganization/store';
import { formatCurrency } from '$lib/helpers/numbers';
@@ -26,8 +26,14 @@
let plan: Tier;
const options = [
{ value: BillingPlan.STARTER, label: `Starter - ${formatCurrency(0)}/month` },
{ value: BillingPlan.PRO, label: `Pro - ${formatCurrency(0)}/month + add-ons` }
{
value: BillingPlan.STARTER,
label: `Starter - ${formatCurrency($plansInfo.get(BillingPlan.STARTER).price)}/month`
},
{
value: BillingPlan.PRO,
label: `Pro - ${formatCurrency($plansInfo.get(BillingPlan.PRO).price)}/month + add-ons`
}
];
onMount(() => {