summaryrefslogtreecommitdiffstats
path: root/web/react/components/msg_typing.jsx
diff options
context:
space:
mode:
authorChristopher Speller <crspeller@gmail.com>2015-11-19 18:10:08 -0500
committerChristopher Speller <crspeller@gmail.com>2015-11-19 18:10:08 -0500
commit5c35c2631e59f895a7b0fb6761c1cae7aee60466 (patch)
tree0d05efe9841a1a62fbf277a025dc6a16bed6750a /web/react/components/msg_typing.jsx
parentc22e8129b0b5f67df6ab8384261a4994fc5cbfb1 (diff)
downloadchat-5c35c2631e59f895a7b0fb6761c1cae7aee60466.tar.gz
chat-5c35c2631e59f895a7b0fb6761c1cae7aee60466.tar.bz2
chat-5c35c2631e59f895a7b0fb6761c1cae7aee60466.zip
Upgrading ESLint and adding some more rules. Refactoring to meet these new rules
Diffstat (limited to 'web/react/components/msg_typing.jsx')
-rw-r--r--web/react/components/msg_typing.jsx3
1 files changed, 2 insertions, 1 deletions
diff --git a/web/react/components/msg_typing.jsx b/web/react/components/msg_typing.jsx
index ccf8a2445..eed85ade6 100644
--- a/web/react/components/msg_typing.jsx
+++ b/web/react/components/msg_typing.jsx
@@ -74,11 +74,12 @@ export default class MsgTyping extends React.Component {
case 1:
text = users[0] + ' is typing...';
break;
- default:
+ default: {
const last = users.pop();
text = users.join(', ') + ' and ' + last + ' are typing...';
break;
}
+ }
this.setState({text});
}