Minor identity bugfix (#10050)

This commit is contained in:
Kara 2022-07-26 16:49:14 -07:00 committed by GitHub
parent ce24d16593
commit 2ca8f8ac80
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -141,7 +141,7 @@ public class IdentitySystem : SharedIdentitySystem
// Get their name and job from their ID for their presumed name.
if (_idCard.TryFindIdCard(target, out var id))
{
presumedName = id.FullName;
presumedName = string.IsNullOrWhiteSpace(id.FullName) ? null : id.FullName;
presumedJob = id.JobTitle?.ToLowerInvariant();
}