mirror of
https://github.com/vector-im/element-web.git
synced 2025-08-24 16:01:42 +02:00
Fix _renderCommaSeparatedList
This commit is contained in:
parent
b887d5b823
commit
f9ca2a8e59
@ -252,7 +252,8 @@ module.exports = React.createClass({
|
|||||||
const other = " other" + (remaining > 1 ? "s" : "");
|
const other = " other" + (remaining > 1 ? "s" : "");
|
||||||
return items.join(', ') + ' and ' + remaining + other;
|
return items.join(', ') + ' and ' + remaining + other;
|
||||||
} else {
|
} else {
|
||||||
return items.join(', ') + ' and ' + items.pop();
|
const lastItem = items.pop();
|
||||||
|
return items.join(', ') + ' and ' + lastItem;
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user