Skip to content

Commit

Permalink
fix: include product code on zod schema (#42)
Browse files Browse the repository at this point in the history
  • Loading branch information
CarlosPavajeau authored Dec 30, 2022
1 parent 1442204 commit 2aebc4e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions components/orders/register/detail/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ import { z } from 'zod'
const OrderDetailSchema = z
.object({
product: z.object({
code: z.string(),
quantity: z.coerce.number().optional()
}),
quantity: z.coerce
Expand Down
1 change: 1 addition & 0 deletions components/sales/register/detail/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ import { z } from 'zod'
const SaleDetailSchema = z
.object({
product: z.object({
code: z.string(),
quantity: z.coerce.number().optional()
}),
quantity: z.coerce
Expand Down

1 comment on commit 2aebc4e

@vercel
Copy link

@vercel vercel bot commented on 2aebc4e Dec 30, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Successfully deployed to the following URLs:

joshub – ./

joshub-git-main-arkews.vercel.app
joshub-arkews.vercel.app
joshub.vercel.app

Please sign in to comment.