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.

Update bounties.ts

Kiran Kf04ebc98a1c8
diff --git a/apps/web/lib/zod/schemas/bounties.ts b/apps/web/lib/zod/schemas/bounties.ts
index 45b643e4ab..09c081f2eb 100644
--- a/apps/web/lib/zod/schemas/bounties.ts
+++ b/apps/web/lib/zod/schemas/bounties.ts
@@ -45,6 +45,7 @@ export const createBountySchema = z.object({
.string()
.trim()
.max(100, "Reward description must be less than 100 characters")
+ .transform((v) => (v === "" ? null : v))
.nullish(),
submissionRequirements: submissionRequirementsSchema.nullish(),
groupIds: z.array(z.string()).nullable(),