Skip to content

Commit

Permalink
Fix accessing TRN page without a NINO
Browse files Browse the repository at this point in the history
  • Loading branch information
gunndabad committed Nov 10, 2023
1 parent 5125dfa commit fe99e03
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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
};
Expand Down

0 comments on commit fe99e03

Please sign in to comment.