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 get-eligible-payouts.ts

Steven Tey6e40290c6386
diff --git a/apps/web/lib/api/payouts/get-eligible-payouts.ts b/apps/web/lib/api/payouts/get-eligible-payouts.ts
index 463e90d4ce..885c6b648a 100644
--- a/apps/web/lib/api/payouts/get-eligible-payouts.ts
+++ b/apps/web/lib/api/payouts/get-eligible-payouts.ts
@@ -74,11 +74,6 @@ export async function getEligiblePayouts({
if (cutoffPeriodValue) {
payouts = payouts
.map((payout) => {
- // custom payouts are included by default
- if (!payout.periodStart && !payout.periodEnd) {
- return payout;
- }
-
const newPayoutAmount = payout.commissions.reduce((acc, commission) => {
return acc + commission.earnings;
}, 0);