From bf86c1df459173fb14d0106688d58ba6d7db165e Mon Sep 17 00:00:00 2001 From: Arman Date: Wed, 27 Dec 2023 17:51:32 +0100 Subject: [PATCH 1/2] fix: stripe error message empty, header button type, budget cap copy --- src/lib/layout/header.svelte | 1 - src/lib/stores/stripe.ts | 2 +- .../organization-[organization]/billing/budgetCap.svelte | 7 ++++++- 3 files changed, 7 insertions(+), 3 deletions(-) diff --git a/src/lib/layout/header.svelte b/src/lib/layout/header.svelte index 4b7308ae82..dc64c5a883 100644 --- a/src/lib/layout/header.svelte +++ b/src/lib/layout/header.svelte @@ -120,7 +120,6 @@ {#if isCloud && $organization?.billingPlan === 'tier-0' && !$page.url.pathname.startsWith('/console/account')} diff --git a/src/lib/stores/stripe.ts b/src/lib/stores/stripe.ts index 4f81173de6..98efcce636 100644 --- a/src/lib/stores/stripe.ts +++ b/src/lib/stores/stripe.ts @@ -91,7 +91,7 @@ export async function submitStripeCard(name: string, urlRoute?: string) { } } catch (e) { trackError(e, Submit.PaymentMethodCreate); - throw e.message; + throw e; } } diff --git a/src/routes/console/organization-[organization]/billing/budgetCap.svelte b/src/routes/console/organization-[organization]/billing/budgetCap.svelte index 214b35c649..38fd833129 100644 --- a/src/routes/console/organization-[organization]/billing/budgetCap.svelte +++ b/src/routes/console/organization-[organization]/billing/budgetCap.svelte @@ -74,7 +74,12 @@ {:else} - + + + Budget cap limits do not include the base amount of your plan. Cap usage + is reset at the beginning of each billing cycle. + + {#if capActive} Date: Wed, 27 Dec 2023 18:20:07 +0100 Subject: [PATCH 2/2] fix: id --- .../organization-[organization]/billing/budgetCap.svelte | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/routes/console/organization-[organization]/billing/budgetCap.svelte b/src/routes/console/organization-[organization]/billing/budgetCap.svelte index 38fd833129..464dab623c 100644 --- a/src/routes/console/organization-[organization]/billing/budgetCap.svelte +++ b/src/routes/console/organization-[organization]/billing/budgetCap.svelte @@ -74,7 +74,7 @@ {:else} - + Budget cap limits do not include the base amount of your plan. Cap usage is reset at the beginning of each billing cycle.