From 646f782e7dbbc6bb2da4340d76ce55c7d5ab25db Mon Sep 17 00:00:00 2001 From: ismay Date: Wed, 22 Apr 2020 16:21:32 +0200 Subject: [PATCH] fix: update number range validation error to match actual bounds --- packages/forms/src/validators/createNumberRange.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/forms/src/validators/createNumberRange.js b/packages/forms/src/validators/createNumberRange.js index dc41b458c4..10442120db 100644 --- a/packages/forms/src/validators/createNumberRange.js +++ b/packages/forms/src/validators/createNumberRange.js @@ -14,7 +14,7 @@ const createNumberRange = (lowerBound, upperBound, customMessage) => { const errorMessage = customMessage || i18n.t( - 'Please enter a number between {{lowerBound}} and {{upperBound}}', + 'Number cannot be less than {{lowerBound}} or more than {{upperBound}}', { lowerBound, upperBound } )