We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent cf63643 commit b6be53bCopy full SHA for b6be53b
apps/webapp/app/routes/_app.orgs.$organizationSlug.settings.team/route.tsx
@@ -107,11 +107,14 @@ const schema = z.object({
107
const PurchaseSchema = z.discriminatedUnion("action", [
108
z.object({
109
action: z.literal("purchase"),
110
- amount: z.coerce.number().min(0, "Amount must be 0 or more"),
+ amount: z.coerce.number().int("Must be a whole number").min(0, "Amount must be 0 or more"),
111
}),
112
113
action: z.literal("quota-increase"),
114
- amount: z.coerce.number().min(1, "Amount must be greater than 0"),
+ amount: z.coerce
115
+ .number()
116
+ .int("Must be a whole number")
117
+ .min(1, "Amount must be greater than 0"),
118
119
]);
120
0 commit comments