[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.
- [taler-merchant-backoffice] branch master updated (b28ef10 -> 68a315b), gnunet, 2022/05/20
- [taler-merchant-backoffice] 01/05: add remove image button, gnunet, 2022/05/20
- [taler-merchant-backoffice] 04/05: fix: allow 0,
gnunet <=
- [taler-merchant-backoffice] 03/05: fix: age as number, gnunet, 2022/05/20
- [taler-merchant-backoffice] 05/05: feat: add logo, email, website, gnunet, 2022/05/20
- [taler-merchant-backoffice] 02/05: undefined when there is no number, gnunet, 2022/05/20