The modern link attribution platform. Loved by world-class engineering teams at Twilio, Zillow, Jobber, Vercel, Raycast, and more.
TypeScript clickhousemysqlnextjsopen-sourceplanetscaleprismatailwindcsstinybirdtypescriptupstashvercel
cleanup
Kiran K2b1d824e0d33
diff --git a/apps/web/lib/integrations/hubspot/constants.ts b/apps/web/lib/integrations/hubspot/constants.tsindex 90bf30ae78..3f1bda4a3a 100644--- a/apps/web/lib/integrations/hubspot/constants.ts+++ b/apps/web/lib/integrations/hubspot/constants.ts@@ -3,12 +3,9 @@ export const HUBSPOT_OBJECT_TYPE_IDS = ["0-3", // deal] as const;-// Reomve this-export const HUBSPOT_DEFAULT_CLOSED_WON_DEAL_STAGE_ID = "closedwon";-export const HUBSPOT_DEFAULT_SETTINGS = {leadTriggerEvent: "dealCreated",- closedWonDealStageId: HUBSPOT_DEFAULT_CLOSED_WON_DEAL_STAGE_ID,+ closedWonDealStageId: "closedwon",};export const LEAD_TRIGGER_EVENT_OPTIONS = [diff --git a/apps/web/lib/integrations/hubspot/schema.ts b/apps/web/lib/integrations/hubspot/schema.tsindex 844188e346..87373cc635 100644--- a/apps/web/lib/integrations/hubspot/schema.ts+++ b/apps/web/lib/integrations/hubspot/schema.ts@@ -1,6 +1,5 @@import z from "@/lib/zod";import {- HUBSPOT_DEFAULT_CLOSED_WON_DEAL_STAGE_ID,HUBSPOT_OBJECT_TYPE_IDS,LEAD_TRIGGER_EVENT_OPTIONS,} from "./constants";@@ -33,7 +32,7 @@ export const hubSpotSettingsSchema = z.object({closedWonDealStageId: z.string().nullish()- .default(HUBSPOT_DEFAULT_CLOSED_WON_DEAL_STAGE_ID)+ .default("closedwon").describe("The ID of the deal stage that represents a closed won deal."),});diff --git a/apps/web/lib/integrations/hubspot/ui/settings.tsx b/apps/web/lib/integrations/hubspot/ui/settings.tsxindex d3ff1a1ca6..3f4c76d982 100644--- a/apps/web/lib/integrations/hubspot/ui/settings.tsx+++ b/apps/web/lib/integrations/hubspot/ui/settings.tsx@@ -8,7 +8,6 @@ import { useState } from "react";import { toast } from "sonner";import { z } from "zod";import {- HUBSPOT_DEFAULT_CLOSED_WON_DEAL_STAGE_ID,HUBSPOT_DEFAULT_SETTINGS,LEAD_TRIGGER_EVENT_OPTIONS,} from "../constants";@@ -147,7 +146,7 @@ export const HubSpotSettings = ({<div className="relative rounded-md shadow-sm"><inputclassName="w-full rounded-md border-neutral-300 text-neutral-900 placeholder-neutral-400 focus:border-neutral-500 focus:outline-none focus:ring-neutral-500 sm:text-sm"- placeholder={HUBSPOT_DEFAULT_CLOSED_WON_DEAL_STAGE_ID}+ placeholder="closedwon"type="text"autoComplete="off"name="closedWonDealStageId"