mirror of
https://github.com/yu-i-i/overleaf-cep.git
synced 2026-06-04 22:59:01 +02:00
Fix incorrect checking of contact name
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user