From 763927afd22813089cd9579ea85980c44dcea6cc Mon Sep 17 00:00:00 2001 From: Steven Nguyen Date: Fri, 30 May 2025 14:41:05 -0700 Subject: [PATCH] fix: don't use newOrgId --- src/routes/(console)/apply-credit/+page.svelte | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/routes/(console)/apply-credit/+page.svelte b/src/routes/(console)/apply-credit/+page.svelte index e959522986..876badabf0 100644 --- a/src/routes/(console)/apply-credit/+page.svelte +++ b/src/routes/(console)/apply-credit/+page.svelte @@ -248,8 +248,10 @@ billingPlan = getBillingPlan(); } + $: isNewOrg = selectedOrgId && selectedOrgId !== newOrgId; + $: { - if (selectedOrgId) { + if (isNewOrg) { (async () => { currentPlan = await sdk.forConsole.billing.getOrganizationPlan(selectedOrgId); })(); @@ -363,7 +365,7 @@ {collaborators} bind:couponData bind:billingBudget - organizationId={selectedOrgId}> + organizationId={isNewOrg ? selectedOrgId : null}> {#if campaign?.template === 'review' && (campaign?.cta || campaign?.claimed || campaign?.unclaimed)}

{campaign?.cta}