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 error message again

Steven Teyb23818069072
diff --git a/apps/web/app/(ee)/api/paypal/callback/route.ts b/apps/web/app/(ee)/api/paypal/callback/route.ts
index 4e93047c75..6c854421f8 100644
--- a/apps/web/app/(ee)/api/paypal/callback/route.ts
+++ b/apps/web/app/(ee)/api/paypal/callback/route.ts
@@ -99,9 +99,9 @@ export const GET = async (req: Request) => {
e.code === "P2002"
) {
error = "paypal_account_already_in_use";
+ } else {
+ error = e.message;
}
-
- error = e.message;
}
redirect(`/payouts${error ? `?error=${encodeURIComponent(error)}` : ""}`);