Skip to content

Commit 53a4d0c

Browse files
committed
Adjust Concierge explain method to stay in the Spend tab
1 parent adfed51 commit 53a4d0c

1 file changed

Lines changed: 5 additions & 1 deletion

File tree

src/libs/actions/Report/index.ts

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2245,7 +2245,11 @@ function explain(
22452245
// Check if explanation thread report already exists
22462246
const report = childReport ?? createChildReport(childReport, reportAction, originalReport, currentUserAccountID, introSelected, betas);
22472247

2248-
Navigation.navigate(ROUTES.REPORT_WITH_ID.getRoute(report.reportID, undefined, undefined, Navigation.getActiveRoute()));
2248+
if (isSearchTopmostFullScreenRoute()) {
2249+
Navigation.navigate(ROUTES.SEARCH_REPORT.getRoute({reportID: report.reportID, backTo: Navigation.getActiveRoute()}));
2250+
} else {
2251+
Navigation.navigate(ROUTES.REPORT_WITH_ID.getRoute(report.reportID, undefined, undefined, Navigation.getActiveRoute()));
2252+
}
22492253
// Schedule adding the explanation comment on the next animation frame
22502254
// so it runs immediately after navigation completes.
22512255
requestAnimationFrame(() => {

0 commit comments

Comments
 (0)