瀏覽代碼

Bring back comparsion erroneously removed

Alasdair Smith 9 年之前
父節點
當前提交
b7713439bf
共有 1 個文件被更改,包括 1 次插入 和 1 次删除
  1. 1 1
      services/web/public/coffee/ide/share/controllers/ShareProjectModalController.coffee

+ 1 - 1
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