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 error message

Steven Tey290cb65a9dbf
diff --git a/apps/web/lib/actions/partners/create-reward.ts b/apps/web/lib/actions/partners/create-reward.ts
index 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 = authActionClient
if (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 exist
if (
event === EventType.sale &&
!program.defaultRewardId &&