Bring back comparsion erroneously removed

This commit is contained in:
Alasdair Smith 2017-09-07 11:30:20 +01:00
parent 320466a4f7
commit b7713439bf

View file

@ -39,7 +39,7 @@ define [
$scope.autocompleteContacts = data.contacts or [] $scope.autocompleteContacts = data.contacts or []
for contact in $scope.autocompleteContacts for contact in $scope.autocompleteContacts
if contact.type == "user" if contact.type == "user"
if contact.last_name and contact.first_name == contact.email.split("@")[0] if contact.last_name == "" and contact.first_name == contact.email.split("@")[0]
# User has not set their proper name so use email as canonical display property # User has not set their proper name so use email as canonical display property
contact.display = contact.email contact.display = contact.email
else else