summaryrefslogtreecommitdiffstats
path: root/webapp/components/create_comment.jsx
diff options
context:
space:
mode:
Diffstat (limited to 'webapp/components/create_comment.jsx')
-rw-r--r--webapp/components/create_comment.jsx6
1 files changed, 1 insertions, 5 deletions
diff --git a/webapp/components/create_comment.jsx b/webapp/components/create_comment.jsx
index e2ea84c46..175eb03be 100644
--- a/webapp/components/create_comment.jsx
+++ b/webapp/components/create_comment.jsx
@@ -142,11 +142,7 @@ export default class CreateComment extends React.Component {
handleSubmit(e) {
e.preventDefault();
- if (this.state.uploadsInProgress.length > 0) {
- return;
- }
-
- if (this.state.submitting) {
+ if (this.state.uploadsInProgress.length > 0 || this.state.submitting) {
return;
}