Fixes erroneous validation

This commit is contained in:
Alex Corey
2021-10-19 09:20:41 -04:00
parent d678d14225
commit ad73e56132

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;