Skip to content

Commit

Permalink
Hey my tests caught a bug!
Browse files Browse the repository at this point in the history
  • Loading branch information
ibolton336 committed Apr 12, 2024
1 parent fc6c538 commit 7c2888d
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions client/src/app/hooks/useAssessmentStatus.ts
Original file line number Diff line number Diff line change
Expand Up @@ -65,11 +65,11 @@ export const useAssessmentStatus = (application: Application) => {

const hasApplicationAssessmentInProgress = applicationAssessments?.some(
(assessment: Assessment) =>
assessment.status === "started" ||
assessment.status === "empty" ||
(assessment.status === "complete" &&
application.assessments?.length !== 0 &&
assessment.required)
assessment.required &&
(assessment.status === "started" ||
assessment.status === "empty" ||
(assessment.status === "complete" &&
application.assessments?.length !== 0))
);

return {
Expand Down

0 comments on commit 7c2888d

Please sign in to comment.