From dd9ad232726742bf81c2b12970e7cfa6aca32d3b Mon Sep 17 00:00:00 2001 From: mkzie2 Date: Mon, 11 Nov 2024 17:13:15 +0700 Subject: [PATCH] Fix search icon is unresponsive --- src/libs/actions/IOU.ts | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/libs/actions/IOU.ts b/src/libs/actions/IOU.ts index 69c5badbc83f..bb3ed1c7078e 100644 --- a/src/libs/actions/IOU.ts +++ b/src/libs/actions/IOU.ts @@ -3960,6 +3960,10 @@ function trackExpense( Navigation.dismissModal(isSearchTopmostCentralPane() ? undefined : activeReportID); if (action === CONST.IOU.ACTION.SHARE) { + if (isSearchTopmostCentralPane() && activeReportID) { + Navigation.goBack(); + Navigation.navigate(ROUTES.REPORT_WITH_ID.getRoute(activeReportID)); + } Navigation.setNavigationActionToMicrotaskQueue(() => Navigation.navigate(ROUTES.ROOM_INVITE.getRoute(activeReportID ?? '-1', CONST.IOU.SHARE.ROLE.ACCOUNTANT))); }