From 20b27f38e6dba884d536999aa12202949b6a5a64 Mon Sep 17 00:00:00 2001 From: Richard Lynch Date: Wed, 20 Nov 2024 10:51:56 +0000 Subject: [PATCH] Don't invert the provider outcome New requirement is to update the copy and show the answer as provided by the provider. --- .../admin_provider_verification_task_presenter.rb | 9 +-------- config/locales/en.yml | 4 ++-- 2 files changed, 3 insertions(+), 10 deletions(-) diff --git a/app/models/policies/further_education_payments/admin_provider_verification_task_presenter.rb b/app/models/policies/further_education_payments/admin_provider_verification_task_presenter.rb index 22ec55f0d8..fbe28f5937 100644 --- a/app/models/policies/further_education_payments/admin_provider_verification_task_presenter.rb +++ b/app/models/policies/further_education_payments/admin_provider_verification_task_presenter.rb @@ -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 diff --git a/config/locales/en.yml b/config/locales/en.yml index c006566773..0e7de131f9 100644 --- a/config/locales/en.yml +++ b/config/locales/en.yml @@ -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"