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.

nullish >>> nullable

Steven Teyf47640b655d9
diff --git a/apps/web/lib/zod/schemas/program-onboarding.ts b/apps/web/lib/zod/schemas/program-onboarding.ts
index be26a0c231..2c34fe2689 100644
--- a/apps/web/lib/zod/schemas/program-onboarding.ts
+++ b/apps/web/lib/zod/schemas/program-onboarding.ts
@@ -10,7 +10,7 @@ export const programInfoSchema = z.object({
domain: z.string(),
url: parseUrlSchema.nullable(),
linkStructure: z.nativeEnum(LinkStructure).default("short"),
- linkParameter: z.string().nullable(),
+ linkParameter: z.string().nullish(),
});
// Configure rewards
diff --git a/apps/web/lib/zod/schemas/programs.ts b/apps/web/lib/zod/schemas/programs.ts
index cd9a1a264a..e1303426a0 100644
--- a/apps/web/lib/zod/schemas/programs.ts
+++ b/apps/web/lib/zod/schemas/programs.ts
@@ -27,7 +27,7 @@ export const ProgramSchema = z.object({
holdingPeriodDays: z.number(),
minPayoutAmount: z.number(),
linkStructure: z.nativeEnum(LinkStructure),
- linkParameter: z.string().nullable(),
+ linkParameter: z.string().nullish(),
// Discounts (for dual-sided incentives)
discounts: z.array(DiscountSchema).nullish(),