summaryrefslogtreecommitdiffstats
path: root/webapp/components/create_comment.jsx
diff options
context:
space:
mode:
authorChristopher Speller <crspeller@gmail.com>2016-07-15 07:49:57 -0400
committerGitHub <noreply@github.com>2016-07-15 07:49:57 -0400
commitb5c5744bc79d99e75629085ccafedd8f50c41916 (patch)
treee8ad0b18295445e52c255375dab6c6e390d276a1 /webapp/components/create_comment.jsx
parent491593b285cb92a3896fbd8203d8461be615880e (diff)
downloadchat-b5c5744bc79d99e75629085ccafedd8f50c41916.tar.gz
chat-b5c5744bc79d99e75629085ccafedd8f50c41916.tar.bz2
chat-b5c5744bc79d99e75629085ccafedd8f50c41916.zip
Updating ESLint (#3597)
Diffstat (limited to 'webapp/components/create_comment.jsx')
-rw-r--r--webapp/components/create_comment.jsx4
1 files changed, 2 insertions, 2 deletions
diff --git a/webapp/components/create_comment.jsx b/webapp/components/create_comment.jsx
index f7564f396..1f21febf1 100644
--- a/webapp/components/create_comment.jsx
+++ b/webapp/components/create_comment.jsx
@@ -181,7 +181,7 @@ class CreateComment extends React.Component {
}
commentMsgKeyPress(e) {
- if (this.state.ctrlSend && e.ctrlKey || !this.state.ctrlSend) {
+ if ((this.state.ctrlSend && e.ctrlKey) || !this.state.ctrlSend) {
if (e.which === KeyCodes.ENTER && !e.shiftKey && !e.altKey) {
e.preventDefault();
ReactDOM.findDOMNode(this.refs.textbox).blur();
@@ -313,7 +313,7 @@ class CreateComment extends React.Component {
draft.uploadsInProgress = uploadsInProgress;
PostStore.storeCommentDraft(this.props.rootId, draft);
- this.setState({previews: previews, uploadsInProgress: uploadsInProgress});
+ this.setState({previews, uploadsInProgress});
}
componentWillReceiveProps(newProps) {