From 0d3a22bbc3308d8d588501db85f46668e566b942 Mon Sep 17 00:00:00 2001 From: Alex Corey Date: Tue, 19 Oct 2021 09:20:41 -0400 Subject: [PATCH] Fixes erroneous validation --- awx/ui/src/components/LaunchPrompt/steps/useSurveyStep.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/awx/ui/src/components/LaunchPrompt/steps/useSurveyStep.js b/awx/ui/src/components/LaunchPrompt/steps/useSurveyStep.js index 19484747fa..a19bc46a57 100644 --- a/awx/ui/src/components/LaunchPrompt/steps/useSurveyStep.js +++ b/awx/ui/src/components/LaunchPrompt/steps/useSurveyStep.js @@ -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;