Skip to content

Commit

Permalink
Fix accessing TRN page without a NINO (#760)
Browse files Browse the repository at this point in the history
  • Loading branch information
gunndabad authored Nov 10, 2023
1 parent 5125dfa commit 507ddb1
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 507ddb1

Please sign in to comment.