The modern link attribution platform. Loved by world-class engineering teams at Twilio, Zillow, Jobber, Vercel, Raycast, and more.
TypeScript clickhousemysqlnextjsopen-sourceplanetscaleprismatailwindcsstinybirdtypescriptupstashvercel
Update route.ts
Kiran Kbc8af4b29a61
diff --git a/apps/web/app/api/partner-profile/payouts/settings/route.ts b/apps/web/app/api/partner-profile/payouts/settings/route.tsindex a9db24b881..8ef7fdc4d5 100644--- a/apps/web/app/api/partner-profile/payouts/settings/route.ts+++ b/apps/web/app/api/partner-profile/payouts/settings/route.ts@@ -24,5 +24,10 @@ export const GET = withPartnerProfile(async ({ partner }) => {},);- return NextResponse.json(response.parse(externalAccounts.data[0]));+ const bankAccounts =+ externalAccounts.data.length > 0+ ? response.parse(externalAccounts.data[0])+ : {};++ return NextResponse.json(bankAccounts);});