diff --git a/src/pages/home/report/ReportActionCompose/ComposerWithSuggestions/ComposerWithSuggestions.js b/src/pages/home/report/ReportActionCompose/ComposerWithSuggestions/ComposerWithSuggestions.js index bdc09e5b7715..08eeba9a3591 100644 --- a/src/pages/home/report/ReportActionCompose/ComposerWithSuggestions/ComposerWithSuggestions.js +++ b/src/pages/home/report/ReportActionCompose/ComposerWithSuggestions/ComposerWithSuggestions.js @@ -525,11 +525,16 @@ function ComposerWithSuggestions({ }), [blur, focus, prepareCommentAndResetComposer, replaceSelectionWithText], ); - // eslint-disable-next-line rulesdir/prefer-early-return + useEffect(() => { - if (value === '') { - setValue(convertToLTR(value)); - } + const changeInputToLTR = (inputValue) => { + if (inputValue === '') { + setValue(convertToLTR(inputValue)); + } + return true; + }; + + return changeInputToLTR(value); }, [value]); return (