Skip to content

Commit

Permalink
Maiden name caching fix. Closes #283.
Browse files Browse the repository at this point in the history
  • Loading branch information
impworks committed Feb 18, 2024
1 parent 5c2b9b9 commit a81ab9c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Bonsai/Areas/Admin/Logic/PagesManagerService.cs
Original file line number Diff line number Diff line change
Expand Up @@ -638,7 +638,7 @@ public static LivingBeingOverview MapLivingBeingOverview(PageEditorVM vm, Living
{
var names = json["Main.Name"]?["Values"];

overview.MaidenName = names?.FirstOrDefault() is { } oldestName
overview.MaidenName = names?.Count() > 1 && names.FirstOrDefault() is { } oldestName
? oldestName["LastName"]?.Value<string>()
: null;

Expand Down

0 comments on commit a81ab9c

Please sign in to comment.