commit b72cca7504d134572e031e22d1c4c2bdb5aeb067
parent c4a7b72c8f2dd114a36ab74b47025be1ba50a203
Author: Sebastian <sebasjm@gmail.com>
Date: Fri, 20 May 2022 13:46:38 -0300
fix: allow 0
Diffstat:
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/packages/merchant-backoffice/src/schemas/index.ts b/packages/merchant-backoffice/src/schemas/index.ts
@@ -170,7 +170,7 @@ export const ProductCreateSchema = yup.object().shape({
stock: yup.object({
}).optional(),
- minimum_age: yup.number().optional().positive(),
+ minimum_age: yup.number().optional().min(0),
})
export const ProductUpdateSchema = yup.object().shape({
@@ -181,7 +181,7 @@ export const ProductUpdateSchema = yup.object().shape({
stock: yup.object({
}).optional(),
- minimum_age: yup.number().optional().positive(),
+ minimum_age: yup.number().optional().min(0),
})