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

View File

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