diff --git a/app/components/post_textbox/post_textbox.js b/app/components/post_textbox/post_textbox.js index 46f234bf2..5b1a76a74 100644 --- a/app/components/post_textbox/post_textbox.js +++ b/app/components/post_textbox/post_textbox.js @@ -99,7 +99,7 @@ class PostTextbox extends PureComponent { const valueLength = value.trim().length; if (files.length) { - return valueLength <= MAX_MESSAGE_LENGTH && uploadFileRequestStatus !== RequestStatus.STARTED && files.filter((f) => !f.failed).length > 0; + return valueLength <= MAX_MESSAGE_LENGTH && uploadFileRequestStatus !== RequestStatus.STARTED; } return valueLength > 0 && valueLength <= MAX_MESSAGE_LENGTH; @@ -218,8 +218,8 @@ class PostTextbox extends PureComponent { return; } - const hasFailedImages = files.some((f) => f.failed); - if (hasFailedImages) { + const hasFailedAttachments = files.some((f) => f.failed); + if (hasFailedAttachments) { const {intl} = this.props; Alert.alert(