Skip to content

Commit

Permalink
Fix double space in name claim for users without middle name (#745)
Browse files Browse the repository at this point in the history
  • Loading branch information
gunndabad authored Oct 19, 2023
1 parent a361df8 commit ba800d1
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ public async Task<IReadOnlyCollection<Claim>> GetPublicClaims(Guid userId, TrnMa
return Array.Empty<Claim>();
}

var fullName = user.MiddleName is null
var fullName = string.IsNullOrWhiteSpace(user.MiddleName)
? $"{user.FirstName} {user.LastName}"
: $"{user.FirstName} {user.MiddleName} {user.LastName}";

Expand Down

0 comments on commit ba800d1

Please sign in to comment.