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.

missed a spot

Steven Tey22009a1ea01b
diff --git a/apps/web/lib/actions/partners/withdraw-funds.ts b/apps/web/lib/actions/partners/withdraw-funds.ts
index 18e9447642..8d0541f889 100644
--- a/apps/web/lib/actions/partners/withdraw-funds.ts
+++ b/apps/web/lib/actions/partners/withdraw-funds.ts
@@ -23,6 +23,9 @@ export const withdrawFundsAction = authPartnerActionClient
}
const dotsUser = await retrieveDotsUser(partner);
+ if (!dotsUser.wallet) {
+ throw new Error("Invalid wallet configuration.");
+ }
const amountToWithdraw = dotsUser.wallet.withdrawable_amount;
const response = await createWithdrawal({