Skip to content

Commit a98d9f1

Browse files
committed
devin comments
1 parent bae3631 commit a98d9f1

1 file changed

Lines changed: 2 additions & 4 deletions

File tree

  • apps/webapp/app/routes/_app.orgs.$organizationSlug.projects.$projectParam.env.$envParam.schedules

apps/webapp/app/routes/_app.orgs.$organizationSlug.projects.$projectParam.env.$envParam.schedules/route.tsx

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -129,16 +129,14 @@ const PurchaseSchema = z.discriminatedUnion("action", [
129129
amount: z.coerce
130130
.number()
131131
.int("Must be a whole number")
132-
.min(0, "Amount must be 0 or more")
133-
.refine((n) => n % 1000 === 0, "Schedules are sold in bundles of 1,000"),
132+
.min(0, "Amount must be 0 or more"),
134133
}),
135134
z.object({
136135
action: z.literal("quota-increase"),
137136
amount: z.coerce
138137
.number()
139138
.int("Must be a whole number")
140-
.min(1, "Amount must be greater than 0")
141-
.refine((n) => n % 1000 === 0, "Schedules are sold in bundles of 1,000"),
139+
.min(1, "Amount must be greater than 0"),
142140
}),
143141
]);
144142

0 commit comments

Comments
 (0)