From 08e0a9b9cc14f82bfccad4c78cfc7c22d33ec564 Mon Sep 17 00:00:00 2001 From: Richard Lynch Date: Fri, 11 Oct 2024 14:01:12 +0100 Subject: [PATCH] Show email as fallback There's an issue where the name fields are not being populated in the DSI oauth payload, as a temporary fix display the email address of the DFE sign in user who verified the claim --- .../further_education_payments/admin_tasks_presenter.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/models/policies/further_education_payments/admin_tasks_presenter.rb b/app/models/policies/further_education_payments/admin_tasks_presenter.rb index a6101ff37b..85d322c3db 100644 --- a/app/models/policies/further_education_payments/admin_tasks_presenter.rb +++ b/app/models/policies/further_education_payments/admin_tasks_presenter.rb @@ -14,7 +14,7 @@ def provider_verification end def provider_name - [verifier.fetch("first_name"), verifier.fetch("last_name")].join(" ") + [verifier.fetch("first_name"), verifier.fetch("last_name")].join(" ").presence || verifier.fetch("email") end def provider_verification_submitted?