From a627ee7ef6383ad462bbb18a52f110e60d099951 Mon Sep 17 00:00:00 2001 From: manuroe Date: Fri, 22 Jan 2016 08:54:40 +0100 Subject: [PATCH] Fixed ternary operation --- .gitignore | 1 + src/components/views/rooms/MemberList.js | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/.gitignore b/.gitignore index 491fc35975..6c4bdb9472 100644 --- a/.gitignore +++ b/.gitignore @@ -1,2 +1,3 @@ node_modules lib +/nbproject/private/ \ No newline at end of file diff --git a/src/components/views/rooms/MemberList.js b/src/components/views/rooms/MemberList.js index ebbebca2f0..3af4cdc44f 100644 --- a/src/components/views/rooms/MemberList.js +++ b/src/components/views/rooms/MemberList.js @@ -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 (