Skip to content

Commit

Permalink
initial fix (#2523)
Browse files Browse the repository at this point in the history
  • Loading branch information
bergomi02 authored and neophyte57 committed Jun 10, 2024
1 parent 6d145f3 commit d34750a
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions prime-dotnet-webapi/Services/CommunitySiteService.cs
Original file line number Diff line number Diff line change
Expand Up @@ -335,8 +335,10 @@ private string CompareContact(Contact currentContact, Contact newContact)
}
}

var currentAddress = AddressToString(currentContact.PhysicalAddress);
var newAddress = AddressToString(newContact.PhysicalAddress);
var currentAddress = currentContact.PhysicalAddress == null ?
"Same address as the site's address" : AddressToString(currentContact.PhysicalAddress);
var newAddress = newContact.PhysicalAddress == null ?
"Same address as the site's address" : AddressToString(newContact.PhysicalAddress);

if (!currentAddress.Equals(newAddress))
{
Expand Down

0 comments on commit d34750a

Please sign in to comment.