Skip to content

Commit f1046c4

Browse files
authored
Merge pull request Expensify#69214 from thelullabyy/fix/68735
Track - When deleting moved expenses, "deleted expense" box with comments is shown & app navigates to concierge
2 parents abf1be4 + 516d3be commit f1046c4

1 file changed

Lines changed: 1 addition & 4 deletions

File tree

src/libs/actions/IOU.ts

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7943,11 +7943,8 @@ function getNavigationUrlAfterTrackExpenseDelete(
79437943
return getNavigationUrlOnMoneyRequestDelete(transactionID, reportAction, isSingleTransactionView);
79447944
}
79457945

7946-
const transactionThreadID = reportAction.childReportID;
7947-
const shouldDeleteTransactionThread = transactionThreadID ? (reportAction?.childVisibleActionCount ?? 0) === 0 : false;
7948-
79497946
// Only navigate if in single transaction view and the thread will be deleted
7950-
if (isSingleTransactionView && shouldDeleteTransactionThread && chatReport?.reportID) {
7947+
if (isSingleTransactionView && chatReport?.reportID) {
79517948
// Pop the deleted report screen before navigating. This prevents navigating to the Concierge chat due to the missing report.
79527949
return ROUTES.REPORT_WITH_ID.getRoute(chatReport.reportID);
79537950
}

0 commit comments

Comments
 (0)