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 create-connected-account.ts

Steven Tey69976f707e95
diff --git a/apps/web/lib/stripe/create-connected-account.ts b/apps/web/lib/stripe/create-connected-account.ts
index 63aa287f60..8ce4d36bd7 100644
--- a/apps/web/lib/stripe/create-connected-account.ts
+++ b/apps/web/lib/stripe/create-connected-account.ts
@@ -22,18 +22,18 @@ export const createConnectedAccount = async ({
business_type: businessType,
email,
country,
- ...(businessType === "individual"
+ ...(businessType === "company"
? {
+ business_profile: {
+ name: companyName!,
+ },
+ }
+ : {
individual: {
first_name: firstName,
last_name: lastName,
email,
},
- }
- : {
- business_profile: {
- name: companyName!,
- },
}),
capabilities: {
transfers: {