From e4233f4f8080deb292cdfd3c31073b72bf0c5ed1 Mon Sep 17 00:00:00 2001 From: Ian Bolton Date: Mon, 18 Dec 2023 12:58:09 -0500 Subject: [PATCH] :bug: Allow save as draft when all questions answered (#1633) - As requested by QE Signed-off-by: ibolton336 --- .../components/assessment-wizard/assessment-wizard.tsx | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/client/src/app/pages/assessment/components/assessment-wizard/assessment-wizard.tsx b/client/src/app/pages/assessment/components/assessment-wizard/assessment-wizard.tsx index 9a06372c86..9a62eb9df0 100644 --- a/client/src/app/pages/assessment/components/assessment-wizard/assessment-wizard.tsx +++ b/client/src/app/pages/assessment/components/assessment-wizard/assessment-wizard.tsx @@ -198,11 +198,7 @@ export const AssessmentWizard: React.FC = ({ return section.questions.every((question) => !questionHasValue(question)); }); - const allQuestionsAnswered = sections.every((section) => - areAllQuestionsAnswered(section) - ); - - return noAnswers || allQuestionsAnswered; + return noAnswers; }; const shouldNextBtnBeEnabled = (