From 9b09b3165f00f4e7e3f5dd8742475d6d3b43837f Mon Sep 17 00:00:00 2001 From: tienifr Date: Mon, 15 Apr 2024 13:11:34 +0700 Subject: [PATCH] fix jest test 3 --- src/pages/home/report/UserTypingEventListener.tsx | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/src/pages/home/report/UserTypingEventListener.tsx b/src/pages/home/report/UserTypingEventListener.tsx index 17b09c445d54..5aa9a0371840 100644 --- a/src/pages/home/report/UserTypingEventListener.tsx +++ b/src/pages/home/report/UserTypingEventListener.tsx @@ -38,13 +38,10 @@ function UserTypingEventListener({report, lastVisitedPath}: UserTypingEventListe const didCreateReportSuccessfully = !report.pendingFields || (!report.pendingFields.addWorkspaceRoom && !report.pendingFields.createChat); if (!didSubscribeToReportTypingEvents.current && didCreateReportSuccessfully) { - const interactionTask = InteractionManager.runAfterInteractions(() => { + InteractionManager.runAfterInteractions(() => { Report.subscribeToReportTypingEvents(reportID); didSubscribeToReportTypingEvents.current = true; }); - return () => { - interactionTask.cancel(); - }; } } else { const topmostReportId = Navigation.getTopmostReportId();