From 178698eaf4e80e7d6f10646d7188fc0b1c7187b4 Mon Sep 17 00:00:00 2001 From: Damodar Lohani Date: Fri, 14 Feb 2025 08:59:12 +0000 Subject: [PATCH] fix typo --- src/lib/components/billing/alerts/newDevUpgradePro.svelte | 4 ++-- src/lib/stores/billing.ts | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/lib/components/billing/alerts/newDevUpgradePro.svelte b/src/lib/components/billing/alerts/newDevUpgradePro.svelte index 8e4637a65..7f8c30878 100644 --- a/src/lib/components/billing/alerts/newDevUpgradePro.svelte +++ b/src/lib/components/billing/alerts/newDevUpgradePro.svelte @@ -2,7 +2,7 @@ import { base } from '$app/paths'; import { page } from '$app/stores'; import { trackEvent } from '$lib/actions/analytics'; - import { BillingPlan, NEW_DEV_PRO_UPGRADE_CUPON } from '$lib/constants'; + import { BillingPlan, NEW_DEV_PRO_UPGRADE_COUPON } from '$lib/constants'; import { Button } from '$lib/elements/forms'; import { organization } from '$lib/stores/organization'; import { activeHeaderAlert } from '$routes/(console)/store'; @@ -29,7 +29,7 @@ secondary fullWidthMobile class="u-line-height-1" - href={`${base}/apply-credit?code=${NEW_DEV_PRO_UPGRADE_CUPON}&org=${$organization.$id}`} + href={`${base}/apply-credit?code=${NEW_DEV_PRO_UPGRADE_COUPON}&org=${$organization.$id}`} on:click={() => { trackEvent('click_credits_redeem', { from: 'button', diff --git a/src/lib/stores/billing.ts b/src/lib/stores/billing.ts index a619d8262..636853952 100644 --- a/src/lib/stores/billing.ts +++ b/src/lib/stores/billing.ts @@ -22,7 +22,7 @@ import { goto } from '$app/navigation'; import { base } from '$app/paths'; import { activeHeaderAlert, orgMissingPaymentMethod } from '$routes/(console)/store'; import MarkedForDeletion from '$lib/components/billing/alerts/markedForDeletion.svelte'; -import { BillingPlan, NEW_DEV_PRO_UPGRADE_CUPON } from '$lib/constants'; +import { BillingPlan, NEW_DEV_PRO_UPGRADE_COUPON } from '$lib/constants'; import PaymentMandate from '$lib/components/billing/alerts/paymentMandate.svelte'; import MissingPaymentMethod from '$lib/components/billing/alerts/missingPaymentMethod.svelte'; import LimitReached from '$lib/components/billing/alerts/limitReached.svelte'; @@ -465,7 +465,7 @@ export async function checkForNewDevUpgradePro(org: Organization) { if (isDismissed) return; // check if coupon already applied try { - await sdk.forConsole.billing.getCoupon(NEW_DEV_PRO_UPGRADE_CUPON); + await sdk.forConsole.billing.getCoupon(NEW_DEV_PRO_UPGRADE_COUPON); } catch (e) { return; }