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 add-edit-discount-sheet.tsx

Kiran K8ad7b785b72a
diff --git a/apps/web/ui/partners/discounts/add-edit-discount-sheet.tsx b/apps/web/ui/partners/discounts/add-edit-discount-sheet.tsx
index 97845c5764..ce67c8ebf3 100644
--- a/apps/web/ui/partners/discounts/add-edit-discount-sheet.tsx
+++ b/apps/web/ui/partners/discounts/add-edit-discount-sheet.tsx
@@ -102,7 +102,7 @@ function DiscountSheetContent({
defaultValuesSource.maxDuration === null
? Infinity
: defaultValuesSource.maxDuration,
- couponId: defaultValuesSource.couponId,
+ couponId: defaultValuesSource.couponId || "",
couponTestId: defaultValuesSource.couponTestId,
enableCouponTracking:
defaultValuesSource.couponCodeTrackingEnabledAt !== null,