diff --git a/src/components/views/elements/MemberEventListSummary.js b/src/components/views/elements/MemberEventListSummary.js index 0ecdecb4ee..109dd0e740 100644 --- a/src/components/views/elements/MemberEventListSummary.js +++ b/src/components/views/elements/MemberEventListSummary.js @@ -103,7 +103,7 @@ module.exports = React.createClass({ ); } - let leaveSummary = ''; + let leaveSummary = null; if (leavers) { leaveSummary = ( @@ -186,7 +186,8 @@ module.exports = React.createClass({ toggleButton = ( {expanded?'collapse':'expand'} ); - let noun = (joinAndLeft === 1 ? 'user' : 'others'); + let plural = (joinEvents.length + leaveEvents.length > 0) ? 'others' : 'users'; + let noun = (joinAndLeft === 1 ? 'user' : plural); summaryContainer = (