From 2a4effa39b8e79ffcf48466067cb33e46ee83a7d Mon Sep 17 00:00:00 2001 From: Aman Ansari Date: Sat, 21 Aug 2021 05:47:18 -0400 Subject: [PATCH] call debounce only when it's required --- src/pages/home/report/ReportActionCompose.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/pages/home/report/ReportActionCompose.js b/src/pages/home/report/ReportActionCompose.js index 9a9346e2188..65eae4426d6 100755 --- a/src/pages/home/report/ReportActionCompose.js +++ b/src/pages/home/report/ReportActionCompose.js @@ -316,7 +316,9 @@ class ReportActionCompose extends React.Component { }); this.comment = newComment; this.debouncedSaveReportComment(newComment); - this.debouncedBroadcastUserIsTyping(); + if (newComment) { + this.debouncedBroadcastUserIsTyping(); + } } /**