Skip to content

Commit 609a47a

Browse files
committed
RSP-4819: UI adjustments
1 parent 8579606 commit 609a47a

File tree

1 file changed

+11
-2
lines changed

1 file changed

+11
-2
lines changed

src/Infrastructure/Rsp.UsersService.Infrastructure/Helpers/IrasUserAuditTrailHandler.cs

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -67,8 +67,17 @@ public async Task<IEnumerable<UserAuditTrail>> GenerateAuditTrails(EntityEntry e
6767

6868
if (property.Metadata.Name == nameof(IrasUser.Country))
6969
{
70-
oldValue = property.OriginalValue?.ToString()?.Replace(",", ", ") ?? emptyValue;
71-
newValue = property.CurrentValue?.ToString()?.Replace(",", ", ") ?? emptyValue;
70+
oldValue = property.OriginalValue?.ToString()?.Replace(",", ", ");
71+
if (string.IsNullOrEmpty(oldValue as string))
72+
{
73+
oldValue = emptyValue;
74+
}
75+
76+
newValue = property.CurrentValue?.ToString()?.Replace(",", ", ");
77+
if (string.IsNullOrEmpty(newValue as string))
78+
{
79+
newValue = emptyValue;
80+
}
7281
}
7382

7483
updateAuditTrail.Description =

0 commit comments

Comments
 (0)