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 track-lead.ts

Kiran Kaaf721c020f2
diff --git a/apps/web/lib/integrations/hubspot/track-lead.ts b/apps/web/lib/integrations/hubspot/track-lead.ts
index b2d86107c2..30ab19cd8d 100644
--- a/apps/web/lib/integrations/hubspot/track-lead.ts
+++ b/apps/web/lib/integrations/hubspot/track-lead.ts
@@ -65,7 +65,7 @@ export const trackHubSpotLeadEvent = async ({
const { properties, associations } = deal;
// Find the contact associated with the deal
- const contact = associations.contacts.results[0];
+ const contact = associations?.contacts?.results?.[0];
if (!contact) {
return;