From d66dacde26b32ddff56a193f405f175734a0113e Mon Sep 17 00:00:00 2001 From: jeet-dhandha Date: Wed, 27 Sep 2023 15:16:02 +0530 Subject: [PATCH] fixed getCommonSuffixLength compare value --- .../home/report/ReportActionCompose/ComposerWithSuggestions.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/pages/home/report/ReportActionCompose/ComposerWithSuggestions.js b/src/pages/home/report/ReportActionCompose/ComposerWithSuggestions.js index 95a33fe6b7213..25cd0a1b77074 100644 --- a/src/pages/home/report/ReportActionCompose/ComposerWithSuggestions.js +++ b/src/pages/home/report/ReportActionCompose/ComposerWithSuggestions.js @@ -211,7 +211,7 @@ function ComposerWithSuggestions({ suggestionsRef.current.resetSuggestions(); } - const remainder = ComposerUtils.getCommonSuffixLength(commentRef.current, newComment); + const remainder = ComposerUtils.getCommonSuffixLength(commentValue, newComment); setSelection({ start: newComment.length - remainder, end: newComment.length - remainder,