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.

more fixes

Steven Tey8dc7f578d191
diff --git a/apps/web/lib/zod/schemas/leads.ts b/apps/web/lib/zod/schemas/leads.ts
index 2da4cb8926..26dd958c35 100644
--- a/apps/web/lib/zod/schemas/leads.ts
+++ b/apps/web/lib/zod/schemas/leads.ts
@@ -109,9 +109,6 @@ export const leadEventResponseSchema = z
timestamp: z.coerce.string(),
eventId: z.string(),
eventName: z.string(),
- // deprecated fields
- event_id: z.string().describe("Deprecated. Use `eventId` instead."),
- event_name: z.string().describe("Deprecated. Use `eventName` instead."),
customer_name: z
.string()
.describe("Deprecated. Use `customer.name` instead.")
diff --git a/apps/web/lib/zod/schemas/sales.ts b/apps/web/lib/zod/schemas/sales.ts
index a316fc8e76..319e85f715 100644
--- a/apps/web/lib/zod/schemas/sales.ts
+++ b/apps/web/lib/zod/schemas/sales.ts
@@ -115,9 +115,6 @@ export const saleEventResponseSchema = z
timestamp: z.coerce.string(),
eventId: z.string(),
eventName: z.string(),
- // deprecated fields
- event_id: z.string().describe("Deprecated. Use `eventId` instead."),
- event_name: z.string().describe("Deprecated. Use `eventName` instead."),
customer_name: z
.string()
.describe("Deprecated. Use `customer.name` instead.")
diff --git a/apps/web/ui/analytics/events/row-menu-button.tsx b/apps/web/ui/analytics/events/row-menu-button.tsx
index 1b08d49028..e6a03eaf14 100644
--- a/apps/web/ui/analytics/events/row-menu-button.tsx
+++ b/apps/web/ui/analytics/events/row-menu-button.tsx
@@ -17,13 +17,13 @@ export function RowMenuButton({ row }: { row: Row<EventDatum> }) {
content={
<Command tabIndex={0} loop className="focus:outline-none">
<Command.List className="flex w-screen flex-col gap-1 p-1 text-sm sm:w-auto sm:min-w-[130px]">
- {"event_id" in row.original && (
+ {"eventId" in row.original && (
<MenuItem
icon={Copy}
label="Copy event ID"
onSelect={() => {
- if (!("event_id" in row.original)) return;
- navigator.clipboard.writeText(row.original.event_id);
+ if (!("eventId" in row.original)) return;
+ navigator.clipboard.writeText(row.original.eventId as string);
toast.success("Copied to clipboard");
setIsOpen(false);
}}