mirror of
https://github.com/vector-im/element-web.git
synced 2024-11-16 21:24:59 +08:00
Prefer null to falsy, use correct plural
This commit is contained in:
parent
1a4df38500
commit
f71ac93946
@ -103,7 +103,7 @@ module.exports = React.createClass({
|
||||
</span>
|
||||
);
|
||||
}
|
||||
let leaveSummary = '';
|
||||
let leaveSummary = null;
|
||||
if (leavers) {
|
||||
leaveSummary = (
|
||||
<span>
|
||||
@ -186,7 +186,8 @@ module.exports = React.createClass({
|
||||
toggleButton = (
|
||||
<a onClick={this._toggleSummary}>{expanded?'collapse':'expand'}</a>
|
||||
);
|
||||
let noun = (joinAndLeft === 1 ? 'user' : 'others');
|
||||
let plural = (joinEvents.length + leaveEvents.length > 0) ? 'others' : 'users';
|
||||
let noun = (joinAndLeft === 1 ? 'user' : plural);
|
||||
|
||||
summaryContainer = (
|
||||
<div className="mx_EventTile_line">
|
||||
|
Loading…
Reference in New Issue
Block a user