The modern link attribution platform. Loved by world-class engineering teams at Twilio, Zillow, Jobber, Vercel, Raycast, and more.
TypeScript clickhousemysqlnextjsopen-sourceplanetscaleprismatailwindcsstinybirdtypescriptupstashvercel
small tweaks
Steven Teyc1658fcd97ce
diff --git a/apps/web/app/api/track/lead/route.ts b/apps/web/app/api/track/lead/route.tsindex d29b210aab..8d3bf6ee84 100644--- a/apps/web/app/api/track/lead/route.ts+++ b/apps/web/app/api/track/lead/route.ts@@ -109,7 +109,7 @@ export const POST = withWorkspaceEdge(},}),- // update project usage+ // update workspace usageprismaEdge.project.update({where: {id: workspace.id,diff --git a/apps/web/lib/zod/schemas/customers.ts b/apps/web/lib/zod/schemas/customers.tsindex a0b4ac02d0..73e1704593 100644--- a/apps/web/lib/zod/schemas/customers.ts+++ b/apps/web/lib/zod/schemas/customers.ts@@ -36,6 +36,7 @@ export const CustomerSchema = z.object({email: z.string().nullish().describe("Email of the customer."),avatar: z.string().nullish().describe("Avatar URL of the customer."),createdAt: z.date().describe("The date the customer was created."),+ country: z.string().nullish().describe("Country of the customer."),});export const trackCustomerRequestSchema = z.object({diff --git a/apps/web/ui/partners/customer-details-sheet.tsx b/apps/web/ui/partners/customer-details-sheet.tsxindex 5e9d47531b..1f5d24d039 100644--- a/apps/web/ui/partners/customer-details-sheet.tsx+++ b/apps/web/ui/partners/customer-details-sheet.tsx@@ -48,7 +48,7 @@ function CustomerDetailsSheetContent({ customer }: CustomerDetailsSheetProps) {const link = customerActivity?.link;const events = customerActivity?.activity;- const country = customerActivity?.customer?.country;+ const country = customer.country;return (<>@@ -94,7 +94,7 @@ function CustomerDetailsSheetContent({ customer }: CustomerDetailsSheetProps) {<div className="h-4 w-24 animate-pulse rounded-full bg-neutral-200" />)}- {country ? (+ {country && (<Linkhref={`/${slug}/events?country=${country}`}target="_blank"@@ -107,8 +107,6 @@ function CustomerDetailsSheetContent({ customer }: CustomerDetailsSheetProps) {/><span className="truncate">{COUNTRIES[country]}</span></Link>- ) : (- <div className="h-4 w-20 animate-pulse rounded-full bg-neutral-200" />)}</div></div>