diff --git a/src/lib/components/billing/validateCreditModal.svelte b/src/lib/components/billing/validateCreditModal.svelte index c9c926577..ebdf09acb 100644 --- a/src/lib/components/billing/validateCreditModal.svelte +++ b/src/lib/components/billing/validateCreditModal.svelte @@ -20,13 +20,15 @@ async function addCoupon() { try { const response = await sdk.forConsole.billing.getCoupon(coupon); - couponData = response; + if (response.onlyNewOrgs && !isNewOrg) { + show = false; addNotification({ type: 'error', message: 'Coupon only valid for new organizations' }); } else { + couponData = response; dispatch('validation', couponData); coupon = null; show = false;