Fix "Unknown messageId" warnings from ID cards (#42886)

* Empty string bad

* Preserve existing behavior
This commit is contained in:
Tayrtahn 2026-03-01 13:26:03 -05:00 committed by Coryler
parent 4776c8b45f
commit 59ad40f5c9
1 changed files with 1 additions and 1 deletions

View File

@ -27,7 +27,7 @@ public sealed partial class IdCardComponent : Component
private string? _jobTitle;
[Access(typeof(SharedIdCardSystem), typeof(SharedPdaSystem), typeof(SharedAgentIdCardSystem), Other = AccessPermissions.ReadWriteExecute)]
public string? LocalizedJobTitle { set => _jobTitle = value; get => _jobTitle ?? Loc.GetString(JobTitle ?? string.Empty); }
public string? LocalizedJobTitle { set => _jobTitle = value; get => _jobTitle ?? (JobTitle != null ? Loc.GetString(JobTitle) : string.Empty); }
/// <summary>
/// The state of the job icon rsi.