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 apps/web/app/(ee)/api/cron/payouts/confirm/confirm-payouts.ts

Kiran K8bb17f942d48
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 f78414b4c2..8398f75df7 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
@@ -119,7 +119,7 @@ export async function confirmPayouts({
const exchangeRate = fxQuote.rates["usd"].exchange_rate;
- if (exchangeRate === null) {
+ if (!exchangeRate || exchangeRate <= 0) {
throw new Error(
`Failed to get exchange rate from Stripe for ${currency}.`,
);