Skip to content

Commit

Permalink
Merge pull request #34 from dhis2/update-validation-error
Browse files Browse the repository at this point in the history
fix: update number range validation error to match actual bounds
  • Loading branch information
ismay authored Apr 22, 2020
2 parents 4642218 + 646f782 commit 3e64af2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/forms/src/validators/createNumberRange.js
Original file line number Diff line number Diff line change
Expand Up @@ -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 }
)

Expand Down

0 comments on commit 3e64af2

Please sign in to comment.