The modern link attribution platform. Loved by world-class engineering teams at Twilio, Zillow, Jobber, Vercel, Raycast, and more.
TypeScript clickhousemysqlnextjsopen-sourceplanetscaleprismatailwindcsstinybirdtypescriptupstashvercel
make nullish for now
Steven Tey29e88bbcc8ed
diff --git a/apps/web/app/app.dub.co/(dashboard)/[slug]/(ee)/program/partners/partners-table.tsx b/apps/web/app/app.dub.co/(dashboard)/[slug]/(ee)/program/partners/partners-table.tsxindex 1b167fd9e4..91ac222fcb 100644--- a/apps/web/app/app.dub.co/(dashboard)/[slug]/(ee)/program/partners/partners-table.tsx+++ b/apps/web/app/app.dub.co/(dashboard)/[slug]/(ee)/program/partners/partners-table.tsx@@ -327,7 +327,7 @@ export function PartnersTable() {"Earnings Per Click (EPC). \n`Total Revenue ÷ Total Clicks`",},accessorFn: (d: EnrolledPartnerProps) =>- currencyFormatter(d.earningsPerClick),+ d.earningsPerClick ? currencyFormatter(d.earningsPerClick) : "-",},{id: "averageLifetimeValue",diff --git a/apps/web/lib/zod/schemas/partners.ts b/apps/web/lib/zod/schemas/partners.tsindex 8ccda4ddd1..5b3bf47074 100644--- a/apps/web/lib/zod/schemas/partners.ts+++ b/apps/web/lib/zod/schemas/partners.ts@@ -399,34 +399,29 @@ export const EnrolledPartnerSchema = PartnerSchema.pick({.describe("The total net revenue generated by the partner"),earningsPerClick: z.number()- .default(0)+ .nullish().describe("Earnings per click (totalSaleAmount / totalClicks) in cents"),averageLifetimeValue: z.number()- .nullable()- .optional()+ .nullish().describe("Average lifetime value (totalSaleAmount / totalConversions) in cents",),clickToLeadRate: z.number()- .nullable()- .optional()+ .nullish().describe("Click to lead rate (totalLeads / totalClicks)"),clickToConversionRate: z.number()- .nullable()- .optional()+ .nullish().describe("Click to conversion rate (totalConversions / totalClicks)"),leadToConversionRate: z.number()- .nullable()- .optional()+ .nullish().describe("Lead to conversion rate (totalConversions / totalLeads)"),returnOnAdSpend: z.number()- .nullable()- .optional()+ .nullish().describe("Return on ad spend (totalSaleAmount / totalCommissions)"),}).merge(