Skip to content

Commit

Permalink
fix value error
Browse files Browse the repository at this point in the history
axgu committed Mar 16, 2024
1 parent e6ef240 commit 0137cf2
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/lib/schemas.ts
Original file line number Diff line number Diff line change
@@ -17,7 +17,10 @@ export const ItemSchema = z.object({
shortDescription: z.string().min(3),
categories: z.array(z.nativeEnum(Category)),
color: z.nativeEnum(Color),
value: z.nativeEnum(Value),
value: z.nativeEnum(Value, {
required_error: 'Required',
invalid_type_error: 'Required'
}),
identifiable: z.boolean(),
itemLocation: z.string().min(3),
retrieveLocation: z.nativeEnum(Location),

0 comments on commit 0137cf2

Please sign in to comment.