Skip to content

Commit

Permalink
initial fix
Browse files Browse the repository at this point in the history
  • Loading branch information
bergomi02 committed Jun 7, 2024
1 parent 24db1b3 commit fe5fa9f
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 fe5fa9f

Please sign in to comment.