chore: missing dollars

This commit is contained in:
Arman
2024-02-01 18:05:23 +01:00
parent 82ed213edf
commit 6e7ba70867
2 changed files with 7 additions and 3 deletions
@@ -1,5 +1,6 @@
<script lang="ts">
import { Button, FormList, InputText } from '$lib/elements/forms';
import { formatCurrency } from '$lib/helpers/numbers';
import type { Coupon } from '$lib/sdk/billing';
import { sdk } from '$lib/stores/sdk';
import { createEventDispatcher } from 'svelte';
@@ -64,7 +65,9 @@
<span class="icon-tag u-color-text-success" />
<slot data={couponData}>
<span>
{couponData.code.toUpperCase()} applied (-${couponData.credits})
{couponData.code.toUpperCase()} applied (-{formatCurrency(
couponData.credits
)})
</span>
</slot>
</div>
+3 -2
View File
@@ -18,6 +18,7 @@
import CreateOrganizationCloud from '../createOrganizationCloud.svelte';
import { tierToPlan, type Tier } from '$lib/stores/billing';
import { createOrganization } from '../wizard/cloudOrganization/store';
import { formatCurrency } from '$lib/helpers/numbers';
let name: string;
let id: string;
@@ -25,8 +26,8 @@
let plan: Tier;
const options = [
{ value: BillingPlan.STARTER, label: 'Starter - $0/month' },
{ value: BillingPlan.PRO, label: 'Pro - $15/month + add-ons' }
{ value: BillingPlan.STARTER, label: `Starter - ${formatCurrency(0)}/month` },
{ value: BillingPlan.PRO, label: `Pro - ${formatCurrency(0)}/month + add-ons` }
];
onMount(() => {