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 import-affiliates.ts

Steven Tey701700d20bc0
diff --git a/apps/web/lib/rewardful/import-affiliates.ts b/apps/web/lib/rewardful/import-affiliates.ts
index 2ffbfa0913..d1cad5be07 100644
--- a/apps/web/lib/rewardful/import-affiliates.ts
+++ b/apps/web/lib/rewardful/import-affiliates.ts
@@ -106,7 +106,7 @@ async function createPartnerAndLinks({
},
create: {
id: createId({ prefix: "pn_" }),
- name: `${affiliate.first_name} ${affiliate.last_name}`,
+ name: `${affiliate.first_name}${affiliate.last_name && affiliate.last_name !== "Unknown" ? ` ${affiliate.last_name}` : ""}`,
email: affiliate.email,
},
update: {},