From 9e3508ea06dfab63f1b682e82168fbb4f8c9e72a Mon Sep 17 00:00:00 2001 From: James Gunn Date: Fri, 10 Nov 2023 14:01:37 +0000 Subject: [PATCH] Fix accessing Check answers page without a NINO --- .../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 03b86d5f2..395a5d751 100644 --- a/dotnet-authserver/src/TeacherIdentity.AuthServer/Journeys/ElevateTrnVerificationLevelJourney.cs +++ b/dotnet-authserver/src/TeacherIdentity.AuthServer/Journeys/ElevateTrnVerificationLevelJourney.cs @@ -40,7 +40,7 @@ public async Task LookupTrn() Steps.Landing => true, CoreSignInJourneyWithTrnLookup.Steps.NiNumber => true, CoreSignInJourneyWithTrnLookup.Steps.Trn => AuthenticationState.HasNationalInsuranceNumber.HasValue, - Steps.CheckAnswers => AuthenticationState.HasNationalInsuranceNumber == true && AuthenticationState.StatedTrn is not null, + Steps.CheckAnswers => AuthenticationState.HasNationalInsuranceNumber.HasValue && AuthenticationState.StatedTrn is not null, _ => false };