Skip to content

Commit b6be53b

Browse files
committed
Code rabbit fix
1 parent cf63643 commit b6be53b

File tree

1 file changed

+5
-2
lines changed
  • apps/webapp/app/routes/_app.orgs.$organizationSlug.settings.team

1 file changed

+5
-2
lines changed

apps/webapp/app/routes/_app.orgs.$organizationSlug.settings.team/route.tsx

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -107,11 +107,14 @@ const schema = z.object({
107107
const PurchaseSchema = z.discriminatedUnion("action", [
108108
z.object({
109109
action: z.literal("purchase"),
110-
amount: z.coerce.number().min(0, "Amount must be 0 or more"),
110+
amount: z.coerce.number().int("Must be a whole number").min(0, "Amount must be 0 or more"),
111111
}),
112112
z.object({
113113
action: z.literal("quota-increase"),
114-
amount: z.coerce.number().min(1, "Amount must be greater than 0"),
114+
amount: z.coerce
115+
.number()
116+
.int("Must be a whole number")
117+
.min(1, "Amount must be greater than 0"),
115118
}),
116119
]);
117120

0 commit comments

Comments
 (0)