From 507ddb1d0952a439976b8608d36d47192103e851 Mon Sep 17 00:00:00 2001 From: James Gunn Date: Fri, 10 Nov 2023 12:40:46 +0000 Subject: [PATCH] Fix accessing TRN page without a NINO (#760) --- .../Journeys/ElevateTrnVerificationLevelJourney.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dotnet-authserver/src/TeacherIdentity.AuthServer/Journeys/ElevateTrnVerificationLevelJourney.cs b/dotnet-authserver/src/TeacherIdentity.AuthServer/Journeys/ElevateTrnVerificationLevelJourney.cs index 30a0a6b30..03b86d5f2 100644 --- a/dotnet-authserver/src/TeacherIdentity.AuthServer/Journeys/ElevateTrnVerificationLevelJourney.cs +++ b/dotnet-authserver/src/TeacherIdentity.AuthServer/Journeys/ElevateTrnVerificationLevelJourney.cs @@ -39,7 +39,7 @@ public async Task LookupTrn() { Steps.Landing => true, CoreSignInJourneyWithTrnLookup.Steps.NiNumber => true, - CoreSignInJourneyWithTrnLookup.Steps.Trn => AuthenticationState.HasNationalInsuranceNumber == true, + CoreSignInJourneyWithTrnLookup.Steps.Trn => AuthenticationState.HasNationalInsuranceNumber.HasValue, Steps.CheckAnswers => AuthenticationState.HasNationalInsuranceNumber == true && AuthenticationState.StatedTrn is not null, _ => false };