mirror of
https://github.com/overleaf/overleaf.git
synced 2025-01-11 16:24:42 +00:00
Bring back comparsion erroneously removed
This commit is contained in:
parent
320466a4f7
commit
b7713439bf
1 changed files with 1 additions and 1 deletions
|
@ -39,7 +39,7 @@ define [
|
|||
$scope.autocompleteContacts = data.contacts or []
|
||||
for contact in $scope.autocompleteContacts
|
||||
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
|
||||
contact.display = contact.email
|
||||
else
|
||||
|
|
Loading…
Reference in a new issue