Fix "Unknown messageId" warnings from ID cards (#42886)
* Empty string bad * Preserve existing behavior
This commit is contained in:
parent
4776c8b45f
commit
59ad40f5c9
|
|
@ -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.
|
||||
|
|
|
|||
Loading…
Reference in New Issue