The modern link attribution platform. Loved by world-class engineering teams at Twilio, Zillow, Jobber, Vercel, Raycast, and more.
TypeScript clickhousemysqlnextjsopen-sourceplanetscaleprismatailwindcsstinybirdtypescriptupstashvercel
update error message
Steven Tey290cb65a9dbf
diff --git a/apps/web/lib/actions/partners/create-reward.ts b/apps/web/lib/actions/partners/create-reward.tsindex 9fb5efa474..b8bed1ac68 100644--- a/apps/web/lib/actions/partners/create-reward.ts+++ b/apps/web/lib/actions/partners/create-reward.ts@@ -74,7 +74,7 @@ export const createRewardAction = authActionClientif (existingRewardCount > 0) {throw new Error(- `Some of these partners already have an existing reward for ${event}.`,+ `Some of these partners already have an existing partner-specific ${event} reward. Remove those partners to continue.`,);}}@@ -99,7 +99,7 @@ export const createRewardAction = authActionClient},});- // set the default reward if it doesn't exist+ // set the default sale reward if it doesn't existif (event === EventType.sale &&!program.defaultRewardId &&