Skip to content

Commit

Permalink
allow cart value to be 0
Browse files Browse the repository at this point in the history
Signed-off-by: Chloe <[email protected]>
  • Loading branch information
vannguyenn committed Feb 24, 2023
1 parent c4cf769 commit 308a6e9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/pages/Promotions/Details/validation.ts
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ export const promotionSchema = Yup.object().shape({
triggerParameters: Yup.object({
conditions: Yup.object({
all: Yup.array().of(Yup.object({
value: Yup.number().moreThan(0, "This field must be greater than 0").required("This field is required")
value: Yup.number().min(0, "This field must be greater than or equal to 0").required("This field is required")
}))
}),
inclusionRules: Yup.object({
Expand Down

0 comments on commit 308a6e9

Please sign in to comment.