diff --git a/app/assets/javascripts/discourse/app/mixins/upload.js b/app/assets/javascripts/discourse/app/mixins/upload.js index f7d568cb964..1066a1e95a1 100644 --- a/app/assets/javascripts/discourse/app/mixins/upload.js +++ b/app/assets/javascripts/discourse/app/mixins/upload.js @@ -99,7 +99,7 @@ export default Mixin.create({ }); $upload.on("fileuploadfail", (e, data) => { - if (!data || (data && data.errorThrown !== "abort")) { + if (!data || data.errorThrown !== "abort") { displayErrorForUpload(data); } reset();