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 transform-customer.ts

Steven Teydf662655b51d
diff --git a/apps/web/lib/api/customers/transform-customer.ts b/apps/web/lib/api/customers/transform-customer.ts
index bdc1fc5937..e146ccce7c 100644
--- a/apps/web/lib/api/customers/transform-customer.ts
+++ b/apps/web/lib/api/customers/transform-customer.ts
@@ -23,7 +23,8 @@ export const transformCustomer = (customer: CustomerWithLink) => {
const programEnrollment = customer.link?.programEnrollment;
return {
...customer,
- partner: programEnrollment ? programEnrollment.partner : null,
- discount: programEnrollment?.discount,
+ link: customer.link || null,
+ partner: programEnrollment?.partner || null,
+ discount: programEnrollment?.discount || null,
};
};