Skip to content

armgit / dub

Public Imported from GitHub
0

The modern link attribution platform. Loved by world-class engineering teams at Twilio, Zillow, Jobber, Vercel, Raycast, and more.

Update create-discount-code.ts

Kiran Kcb6c3c4ac179
diff --git a/apps/web/lib/api/discounts/create-discount-code.ts b/apps/web/lib/api/discounts/create-discount-code.ts
index a61d9c990f..57cba849c4 100644
--- a/apps/web/lib/api/discounts/create-discount-code.ts
+++ b/apps/web/lib/api/discounts/create-discount-code.ts
@@ -65,7 +65,7 @@ export async function createDiscountCode({
// Generate a new suffix for retry
if (hasAttemptsLeft) {
- finalCode = `${stripeDiscountCode.code}${nanoid(3)}.toUpperCase()`;
+ finalCode = `${stripeDiscountCode.code}${nanoid(3)}`.toUpperCase();
attempt++;
continue;
}