From 58e553d6f2b1f8a93e12781fa9b2a1c3490c52e0 Mon Sep 17 00:00:00 2001 From: Arman Date: Tue, 20 Aug 2024 15:08:26 +0200 Subject: [PATCH] chore: hide scale plan --- .../components/billing/planSelection.svelte | 46 +++++++++++-------- src/routes/console/apply-credit/+page.svelte | 2 +- 2 files changed, 27 insertions(+), 21 deletions(-) diff --git a/src/lib/components/billing/planSelection.svelte b/src/lib/components/billing/planSelection.svelte index c2af34653..2fb005922 100644 --- a/src/lib/components/billing/planSelection.svelte +++ b/src/lib/components/billing/planSelection.svelte @@ -68,25 +68,31 @@ -
  • - - -
    -

    - {tierScale.name} - {#if $organization?.billingPlan === BillingPlan.SCALE && !isNewOrg} - Current plan - {/if} -

    -

    - {tierScale.description} -

    -

    - {formatCurrency(scalePlan?.price ?? 0)} per month + usage -

    -
    -
    -
    -
  • + {#if $organization?.billingPlan === BillingPlan.SCALE} +
  • + + +
    +

    + {tierScale.name} + {#if $organization?.billingPlan === BillingPlan.SCALE && !isNewOrg} + Current plan + {/if} +

    +

    + {tierScale.description} +

    +

    + {formatCurrency(scalePlan?.price ?? 0)} per month + usage +

    +
    +
    +
    +
  • + {/if} {/if} diff --git a/src/routes/console/apply-credit/+page.svelte b/src/routes/console/apply-credit/+page.svelte index 231c8820f..b1b10bfa0 100644 --- a/src/routes/console/apply-credit/+page.svelte +++ b/src/routes/console/apply-credit/+page.svelte @@ -283,7 +283,7 @@

    Credits will automatically be applied to your next invoice on {toLocaleDate(selectedOrg.billingNextInvoiceDate)}. + >{toLocaleDate(selectedOrg?.billingNextInvoiceDate)}.

    {:else}

    Add a coupon code to apply credits to your organization.