Skip to content

Commit 54e5187

Browse files
authored
Merge pull request Expensify#65692 from FitseTLT/fix-getOneTransactionThreadReportID-logic-to-exclude-deleted-iou
2 parents efb68cd + 4eeba20 commit 54e5187

1 file changed

Lines changed: 1 addition & 5 deletions

File tree

src/libs/ReportActionsUtils.ts

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1289,12 +1289,8 @@ function getOneTransactionThreadReportAction(
12891289
action.childReportID &&
12901290
// Include deleted IOU reportActions if:
12911291
// - they have an associated IOU transaction ID or
1292-
// - they have visible childActions (like comments) that we'd want to display
12931292
// - the action is pending deletion and the user is offline
1294-
(!!originalMessage?.IOUTransactionID ||
1295-
// eslint-disable-next-line @typescript-eslint/prefer-nullish-coalescing
1296-
(isMessageDeleted(action) && action.childVisibleActionCount) ||
1297-
(action.pendingAction === CONST.RED_BRICK_ROAD_PENDING_ACTION.DELETE && (isOffline ?? isNetworkOffline)))
1293+
(!!originalMessage?.IOUTransactionID || (action.pendingAction === CONST.RED_BRICK_ROAD_PENDING_ACTION.DELETE && (isOffline ?? isNetworkOffline)))
12981294
) {
12991295
iouRequestActions.push(action);
13001296
}

0 commit comments

Comments
 (0)