The modern link attribution platform. Loved by world-class engineering teams at Twilio, Zillow, Jobber, Vercel, Raycast, and more.
TypeScript clickhousemysqlnextjsopen-sourceplanetscaleprismatailwindcsstinybirdtypescriptupstashvercel
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.tsindex 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;