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 mark-commission-duplicate.ts

Steven Teyf5e49eb9d386
diff --git a/apps/web/lib/actions/partners/mark-commission-duplicate.ts b/apps/web/lib/actions/partners/mark-commission-duplicate.ts
index f01290a69c..832cd05fb7 100644
--- a/apps/web/lib/actions/partners/mark-commission-duplicate.ts
+++ b/apps/web/lib/actions/partners/mark-commission-duplicate.ts
@@ -43,10 +43,6 @@ export const markCommissionDuplicateAction = authActionClient
throw new Error("You cannot mark a paid commission as duplicate.");
}
- if (commission.type === "custom") {
- throw new Error("You cannot mark a custom commission as duplicate.");
- }
-
// there is a payout associated with this sale
// we need to update the payout amount if the sale is being marked as duplicate
if (commission.payout) {