From 87746227bfbc738bf79bda35cb8c06859f186c18 Mon Sep 17 00:00:00 2001
From: Jonathan <jonfritz@gmail.com>
Date: Mon, 24 Jul 2017 08:22:19 -0400
Subject: PLT-3470: Changed all instances of user list to show full name,
 username, and nickname (#6994)

---
 webapp/components/user_list_row.jsx | 8 +-------
 1 file changed, 1 insertion(+), 7 deletions(-)

(limited to 'webapp/components/user_list_row.jsx')

diff --git a/webapp/components/user_list_row.jsx b/webapp/components/user_list_row.jsx
index c8a4ac7ba..af71a8f0d 100644
--- a/webapp/components/user_list_row.jsx
+++ b/webapp/components/user_list_row.jsx
@@ -14,12 +14,6 @@ import React from 'react';
 import {FormattedHTMLMessage} from 'react-intl';
 
 export default function UserListRow({user, extraInfo, actions, actionProps, actionUserProps, userCount}) {
-    const displayName = Utils.displayUsernameForUser(user);
-    let name = `${displayName} (@${user.username})`;
-    if (displayName === user.username) {
-        name = user.username;
-    }
-
     let buttons = null;
     if (actions) {
         buttons = actions.map((Action, index) => {
@@ -80,7 +74,7 @@ export default function UserListRow({user, extraInfo, actions, actionProps, acti
                     id={userCountID}
                     className='more-modal__name'
                 >
-                    {name}
+                    {Utils.displayEntireNameForUser(user)}
                 </div>
                 <div
                     id={userCountEmail}
-- 
cgit v1.2.3-1-g7c22

