Skip to content

Commit

Permalink
Handle a null TrnVerificationLevel when comparing to required level (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
gunndabad authored Jan 15, 2024
1 parent ac2ab8e commit 6e6dd21
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ public async Task<IActionResult> OnPost()
user.EmailAddress = Email;

bool trnVerificationLevelChanged = false;
if (user.TrnVerificationLevel < journeyTrnVerificationLevel)
if ((user.TrnVerificationLevel ?? TrnVerificationLevel.Low) < journeyTrnVerificationLevel)
{
user.TrnVerificationLevel = journeyTrnVerificationLevel;
trnVerificationLevelChanged = true;
Expand Down

0 comments on commit 6e6dd21

Please sign in to comment.