Skip to content

Commit 5e7a26e

Browse files
authored
Merge pull request #636 from Shubham-Praj/master
Line Item amount validation error
2 parents 6562564 + 8863875 commit 5e7a26e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/schemas.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ const fieldValidators = {
5454
.min(1, { message: "Must be a number greater than 0" }),
5555
unitPrice: z.coerce
5656
.number()
57-
.min(1, { message: "Must be a number greater than 0" }),
57+
.gt(0, { message: "Must be a number greater than 0" }),
5858

5959
// Strings
6060
string: z.string(),

0 commit comments

Comments
 (0)