From b7713439bf7d3b2b2cd56663579197053c34b721 Mon Sep 17 00:00:00 2001 From: Alasdair Smith Date: Thu, 7 Sep 2017 11:30:20 +0100 Subject: [PATCH] Bring back comparsion erroneously removed --- .../ide/share/controllers/ShareProjectModalController.coffee | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/services/web/public/coffee/ide/share/controllers/ShareProjectModalController.coffee b/services/web/public/coffee/ide/share/controllers/ShareProjectModalController.coffee index 2cf6aaa8ec..97d445e47f 100644 --- a/services/web/public/coffee/ide/share/controllers/ShareProjectModalController.coffee +++ b/services/web/public/coffee/ide/share/controllers/ShareProjectModalController.coffee @@ -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