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.

Math.round()

Steven Tey59b32676d5f5
diff --git a/apps/web/app/(ee)/api/cron/payouts/confirm/confirm-payouts.ts b/apps/web/app/(ee)/api/cron/payouts/confirm/confirm-payouts.ts
index 059936bfd0..9f86a8a4af 100644
--- a/apps/web/app/(ee)/api/cron/payouts/confirm/confirm-payouts.ts
+++ b/apps/web/app/(ee)/api/cron/payouts/confirm/confirm-payouts.ts
@@ -127,7 +127,7 @@ export async function confirmPayouts({
);
const currency = paymentMethodToCurrency[paymentMethod.type] || "usd";
- const totalFee = payoutAmount * payoutFee;
+ const totalFee = Math.round(payoutAmount * payoutFee);
const total = payoutAmount + totalFee;
let convertedTotal = total;