From 35fd834397c7fa242ead6c7ca8c41f7b989b2ee9 Mon Sep 17 00:00:00 2001 From: Oswaldo Acauan Date: Tue, 1 Aug 2017 14:50:33 -0300 Subject: [PATCH] Fix error when a user have no subName --- .../components/user-list/user-list-item/component.jsx | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/bigbluebutton-html5/imports/ui/components/user-list/user-list-item/component.jsx b/bigbluebutton-html5/imports/ui/components/user-list/user-list-item/component.jsx index 562a2aa923..4db23ae20c 100755 --- a/bigbluebutton-html5/imports/ui/components/user-list/user-list-item/component.jsx +++ b/bigbluebutton-html5/imports/ui/components/user-list/user-list-item/component.jsx @@ -263,10 +263,13 @@ class UserListItem extends Component { {user.name} {(user.isCurrent) ? `(${intl.formatMessage(messages.you)})` : ''} - - {userNameSub - .reduce((prev, curr) => [prev, ' | ', curr])} - + { + userNameSub ? + + {userNameSub.reduce((prev, curr) => [prev, ' | ', curr])} + + : null + } ); }