diff --git a/src/components/views/elements/MemberEventListSummary.js b/src/components/views/elements/MemberEventListSummary.js index c563a7d420..26696ccf40 100644 --- a/src/components/views/elements/MemberEventListSummary.js +++ b/src/components/views/elements/MemberEventListSummary.js @@ -185,8 +185,6 @@ module.exports = React.createClass({ }); let fewEvents = eventsToRender.length < this.props.threshold; - console.log(eventsToRender.length, joinEvents.length, leaveEvents.length, this.state.expanded, fewEvents); - let expanded = this.state.expanded || fewEvents; let expandedEvents = null; @@ -204,6 +202,8 @@ module.exports = React.createClass({ {expanded?'collapse':'expand'} ); + let noun = (joinAndLeft === 1 ? 'user' : 'others'); + summaryContainer = (
@@ -211,7 +211,7 @@ module.exports = React.createClass({ {avatars} - {summary}{joinAndLeft? '. ' + joinAndLeft + ' others joined and left' : ''} + {summary}{joinAndLeft? '. ' + joinAndLeft + ' ' + noun + ' joined and left' : ''}   {toggleButton}