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.

Fix customer schema

Steven Teyf14c8c4c49da
diff --git a/apps/web/lib/zod/schemas/customers.ts b/apps/web/lib/zod/schemas/customers.ts
index 1951f5c7bf..a1a2174eb7 100644
--- a/apps/web/lib/zod/schemas/customers.ts
+++ b/apps/web/lib/zod/schemas/customers.ts
@@ -72,8 +72,8 @@ export const CustomerSchema = z.object({
partner: z
.object({
id: z.string(),
- name: z.string(),
- email: z.string(),
+ name: z.string().nullish(),
+ email: z.string().nullish(),
image: z.string().nullish(),
})
.nullish(),