fix(utils): fix error messages for range validation of number parameters (#10344)
This commit is contained in:
@@ -304,13 +304,13 @@ export const propChecker = (props, nextProps, objectList=[], ignoreList=[]) => {
|
||||
|
||||
export const validateMaximum = ( val, max ) => {
|
||||
if (val > max) {
|
||||
return `Value must be less than ${max}`
|
||||
return `Value must be less than or equal to ${max}`
|
||||
}
|
||||
}
|
||||
|
||||
export const validateMinimum = ( val, min ) => {
|
||||
if (val < min) {
|
||||
return `Value must be greater than ${min}`
|
||||
return `Value must be greater than or equal to ${min}`
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user