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.ts

Kiran Ke736d0c47bc8
diff --git a/apps/web/lib/actions/partners/create-discount.ts b/apps/web/lib/actions/partners/create-discount.ts
index 5f7e348cf3..1a86e39f04 100644
--- a/apps/web/lib/actions/partners/create-discount.ts
+++ b/apps/web/lib/actions/partners/create-discount.ts
@@ -59,7 +59,9 @@ export const createDiscountAction = authActionClient
});
if (!stripeCoupon) {
- throw new Error("Failed to create Stripe coupon. Please try again.");
+ throw new Error(
+ "Failed to create Stripe coupon. Make sure you installed the latest version of the Dub Stripe app.",
+ );
}
couponId = stripeCoupon.id;