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.

fix logic

Steven Tey8c1e08e7652d
diff --git a/apps/web/lib/actions/partners/confirm-payouts.ts b/apps/web/lib/actions/partners/confirm-payouts.ts
index 39e357f5cc..5cd0d89293 100644
--- a/apps/web/lib/actions/partners/confirm-payouts.ts
+++ b/apps/web/lib/actions/partners/confirm-payouts.ts
@@ -26,10 +26,7 @@ export const confirmPayoutsAction = authActionClient
throw new Error("Workspace does not have a valid Stripe ID.");
}
- if (
- workspace.payoutsUsage + workspace.payoutsLimit >
- workspace.payoutsLimit
- ) {
+ if (workspace.payoutsUsage > workspace.payoutsLimit) {
throw new Error(
exceededLimitError({
plan: workspace.plan,