Skip to content

Commit

Permalink
Merge pull request #3416 from DFE-Digital/CAPT-2011/performance-disci…
Browse files Browse the repository at this point in the history
…plinary-ammendment

Don't invert the provider outcome
  • Loading branch information
rjlynch authored Nov 22, 2024
2 parents 6d3f5c6 + 20b27f3 commit d1b202c
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 10 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -115,14 +115,7 @@ def claimant_answer(assertion)
end

def provider_answer(assertion)
case assertion["name"]
when "subject_to_formal_performance_action", "subject_to_disciplinary_action"
# Due to the phrasing of the question to the provider, we need to
# negate their answer when displaying it in the admin ui.
assertion["outcome"] ? "No" : "Yes"
else
assertion["outcome"] ? "Yes" : "No"
end
assertion["outcome"] ? "Yes" : "No"
end

def subjects_taught
Expand Down
4 changes: 2 additions & 2 deletions config/locales/en.yml
Original file line number Diff line number Diff line change
Expand Up @@ -941,12 +941,12 @@ en:
true: "Yes"
false: "No"
subject_to_formal_performance_action:
label: "Performance measures"
label: "No performance measures"
claimant_answers:
true: "Yes"
false: "No"
subject_to_disciplinary_action:
label: "Disciplinary action"
label: "No disciplinary action"
claimant_answers:
true: "Yes"
false: "No"
Expand Down

0 comments on commit d1b202c

Please sign in to comment.