gnunet-svn
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[taler-merchant-backoffice] 04/05: fix: allow 0


From: gnunet
Subject: [taler-merchant-backoffice] 04/05: fix: allow 0
Date: Fri, 20 May 2022 18:47:19 +0200

This is an automated email from the git hooks/post-receive script.

sebasjm pushed a commit to branch master
in repository merchant-backoffice.

commit b72cca7504d134572e031e22d1c4c2bdb5aeb067
Author: Sebastian <sebasjm@gmail.com>
AuthorDate: Fri May 20 13:46:38 2022 -0300

    fix: allow 0
---
 packages/merchant-backoffice/src/schemas/index.ts | 4 ++--
 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
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),
 })
 
 

-- 
To stop receiving notification emails like this one, please contact
gnunet@gnunet.org.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]