File tree Expand file tree Collapse file tree 2 files changed +2
-0
lines changed Expand file tree Collapse file tree 2 files changed +2
-0
lines changed Original file line number Diff line number Diff 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 ( )
Original file line number Diff line number Diff 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 ( )
You can’t perform that action at this time.
0 commit comments