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

Steven Teybd3ea2cf8771
diff --git a/apps/web/lib/partners/create-partner-commission.ts b/apps/web/lib/partners/create-partner-commission.ts
index 00f5b3da35..a7ffce4f73 100644
--- a/apps/web/lib/partners/create-partner-commission.ts
+++ b/apps/web/lib/partners/create-partner-commission.ts
@@ -71,7 +71,7 @@ export const createPartnerCommission = async ({
});
if (firstCommission) {
- // use reward details from the first sale to lock in original terms.
+ // use reward details from the first sale to lock in original terms (if exists)
// ensures historical consistency if the reward configuration has changed since the commission was created
if (firstCommission.rewardType) {
reward = {