diff --git a/app/javascript/flavours/glitch/features/compose/components/compose_form.js b/app/javascript/flavours/glitch/features/compose/components/compose_form.js index b03bc34b8..71dfc48b9 100644 --- a/app/javascript/flavours/glitch/features/compose/components/compose_form.js +++ b/app/javascript/flavours/glitch/features/compose/components/compose_form.js @@ -55,7 +55,6 @@ class ComposeForm extends ImmutablePureComponent { onFetchSuggestions: PropTypes.func, onSuggestionSelected: PropTypes.func, onChangeSpoilerText: PropTypes.func, - onPaste: PropTypes.func, onPickEmoji: PropTypes.func, showSearch: PropTypes.bool, anyMedia: PropTypes.bool, @@ -88,8 +87,7 @@ class ComposeForm extends ImmutablePureComponent { return [ this.props.spoiler? this.props.spoilerText: '', countableText(this.props.text), - this.props.advancedOptions && this.props.advancedOptions.get('do_not_federate') ? ' 👁️' : '' - ].join(''); + this.props.advancedOptions && this.props.advancedOptions.get('do_not_federate') ? ' 👁️' : ''].join(''); } canSubmit = () => { @@ -173,7 +171,7 @@ class ComposeForm extends ImmutablePureComponent { this.handleSubmit(); } - if (e.keyCode == 13 && e.altKey) { + if (e.keyCode === 13 && e.altKey) { this.handleSecondarySubmit(); } }