Skip to content

Commit bae6aa3

Browse files
authored
Merge branch 'master' into unstable
2 parents 038e4ad + 75c1ded commit bae6aa3

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

forms/BulkCoupon.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -64,6 +64,7 @@ const bulkCouponSchema = Yup.object().shape({
6464
.positive().nullable().notRequired(),
6565
max_product_mrp: Yup.number()
6666
.positive()
67+
.max(Number.MAX_SAFE_INTEGER, 'entered value to large')
6768
.moreThan(Yup.ref('min_product_mrp'),
6869
"must be greater than min product mrp")
6970
.nullable().notRequired()

forms/Coupon.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,7 @@ const couponSchema = Yup.object().shape({
5959
.positive().nullable().notRequired(),
6060
max_product_mrp: Yup.number()
6161
.positive()
62+
.max(Number.MAX_SAFE_INTEGER, 'entered value to large')
6263
.moreThan(Yup.ref('min_product_mrp'),
6364
"must be greater than min product mrp")
6465
.nullable().notRequired()

0 commit comments

Comments
 (0)