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 rewards.ts

Kiran Kbbf733933af1
diff --git a/apps/web/lib/zod/schemas/rewards.ts b/apps/web/lib/zod/schemas/rewards.ts
index 2804fa1ec6..f78d407a04 100644
--- a/apps/web/lib/zod/schemas/rewards.ts
+++ b/apps/web/lib/zod/schemas/rewards.ts
@@ -30,7 +30,7 @@ export const RewardSchema = z.object({
export const createOrUpdateRewardSchema = z.object({
workspaceId: z.string(),
event: z.nativeEnum(EventType),
- type: z.nativeEnum(RewardStructure).default("flat"),
+ type: z.nativeEnum(RewardStructure).default(RewardStructure.flat),
amount: z.number().min(0),
maxDuration: maxDurationSchema,
maxAmount: z.number().nullish(),