diff options
author | Sebastian <sebasjm@gmail.com> | 2022-05-20 13:46:38 -0300 |
---|---|---|
committer | Sebastian <sebasjm@gmail.com> | 2022-05-20 13:47:02 -0300 |
commit | b72cca7504d134572e031e22d1c4c2bdb5aeb067 (patch) | |
tree | 2e1886682579c11d380979359828ca854fa6a9c9 /packages | |
parent | c4a7b72c8f2dd114a36ab74b47025be1ba50a203 (diff) | |
download | merchant-backoffice-b72cca7504d134572e031e22d1c4c2bdb5aeb067.tar.gz merchant-backoffice-b72cca7504d134572e031e22d1c4c2bdb5aeb067.tar.bz2 merchant-backoffice-b72cca7504d134572e031e22d1c4c2bdb5aeb067.zip |
fix: allow 0
Diffstat (limited to 'packages')
-rw-r--r-- | packages/merchant-backoffice/src/schemas/index.ts | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/packages/merchant-backoffice/src/schemas/index.ts b/packages/merchant-backoffice/src/schemas/index.ts index 6901293..00e8019 100644 --- 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), }) |