1
0
mirror of https://github.com/matrix-org/matrix-react-sdk.git synced 2025-11-08 21:42:24 +03:00

Fixed ternary operation

This commit is contained in:
manuroe
2016-01-22 08:54:40 +01:00
parent 8ccc3f04c3
commit a627ee7ef6
2 changed files with 2 additions and 1 deletions

1
.gitignore vendored
View File

@@ -1,2 +1,3 @@
node_modules
lib
/nbproject/private/

View File

@@ -262,7 +262,7 @@ module.exports = React.createClass({
// For now we'll pretend this is any entity. It should probably be a separate tile.
var EntityTile = sdk.getComponent("rooms.EntityTile");
var BaseAvatar = sdk.getComponent('avatars.BaseAvatar');
var text = "and " + overflowCount + " other" + (overflowCount > 1 : "s" : "") + "...";
var text = "and " + overflowCount + " other" + (overflowCount > 1 ? "s" : "") + "...";
return (
<EntityTile className="mx_EntityTile_ellipsis" avatarJsx={
<BaseAvatar url="img/ellipsis.svg" name="..." width={36} height={36} />