From a411fecd1a79119930a049292ef89f53c03fdafd Mon Sep 17 00:00:00 2001 From: Torsten Dittmann Date: Thu, 15 Feb 2024 10:47:53 +0000 Subject: [PATCH] fix: slef-hosted trying to access billing --- src/routes/console/onboarding/+page.svelte | 22 ++++++++++++---------- 1 file changed, 12 insertions(+), 10 deletions(-) diff --git a/src/routes/console/onboarding/+page.svelte b/src/routes/console/onboarding/+page.svelte index c4cda0b74..af2a1e2ba 100644 --- a/src/routes/console/onboarding/+page.svelte +++ b/src/routes/console/onboarding/+page.svelte @@ -25,16 +25,18 @@ let showCustomId = false; let plan: Tier; - const options = [ - { - 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` - } - ]; + const options = isCloud + ? [ + { + 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(() => { if (isCloud) {