Fixes erroneous validation

This commit is contained in:
Alex Corey 2021-10-19 09:20:41 -04:00 committed by Shane McDonald
parent f34c96ecf5
commit 0d3a22bbc3
No known key found for this signature in database
GPG Key ID: 6F374AF6E9EB9374

View File

@ -128,9 +128,9 @@ function checkForError(launchConfig, surveyConfig, values) {
hasError = true;
}
}
if (isNumeric && (value || value === 0)) {
if (isNumeric) {
if (
(value < question.min || value > question.max) &&
(value < question.min || value > question.max || value === '') &&
question.required
) {
hasError = true;