Skip to content

Commit

Permalink
🐛 Allow save as draft when all questions answered (#1633)
Browse files Browse the repository at this point in the history
- As requested by QE

Signed-off-by: ibolton336 <[email protected]>
  • Loading branch information
ibolton336 authored Dec 18, 2023
1 parent 7cd5647 commit e4233f4
Showing 1 changed file with 1 addition and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -198,11 +198,7 @@ export const AssessmentWizard: React.FC<AssessmentWizardProps> = ({
return section.questions.every((question) => !questionHasValue(question));
});

const allQuestionsAnswered = sections.every((section) =>
areAllQuestionsAnswered(section)
);

return noAnswers || allQuestionsAnswered;
return noAnswers;
};

const shouldNextBtnBeEnabled = (
Expand Down

0 comments on commit e4233f4

Please sign in to comment.