diff --git a/src/compose/ComposeBox.js b/src/compose/ComposeBox.js index 63321aa8b05..4c3bf23c307 100644 --- a/src/compose/ComposeBox.js +++ b/src/compose/ComposeBox.js @@ -250,9 +250,9 @@ class ComposeBox extends PureComponent { this.setMessageInputValue(completedText); if (lastWordPrefix === '@') { - if (this.mentionWarnings.current) { - this.mentionWarnings.current.getWrappedInstance().handleMentionSubscribedCheck(completion); - } + // https://github.com/eslint/eslint/issues/11045 + // eslint-disable-next-line no-unused-expressions + this.mentionWarnings.current?.getWrappedInstance().handleMentionSubscribedCheck(completion); } };