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 Kb0524a6e0411
diff --git a/apps/web/lib/integrations/hubspot/track-lead.ts b/apps/web/lib/integrations/hubspot/track-lead.ts
index ffad2611dd..a0996ce67f 100644
--- a/apps/web/lib/integrations/hubspot/track-lead.ts
+++ b/apps/web/lib/integrations/hubspot/track-lead.ts
@@ -129,6 +129,11 @@ export const trackHubSpotLeadEvent = async ({
subscriptionType === "object.propertyChange" &&
settings.leadTriggerEvent === "lifecycleStageReached"
) {
+ if (!settings.leadLifecycleStageId) {
+ console.error(`[HubSpot] leadLifecycleStageId is not set.`);
+ return;
+ }
+
const contactInfo = await hubSpotApi.getContact(objectId);
if (!contactInfo) {