diff --git a/src/libs/ReportActionsUtils.ts b/src/libs/ReportActionsUtils.ts index ef9872880267..15a34bf5db6d 100644 --- a/src/libs/ReportActionsUtils.ts +++ b/src/libs/ReportActionsUtils.ts @@ -1289,12 +1289,8 @@ function getOneTransactionThreadReportAction( action.childReportID && // Include deleted IOU reportActions if: // - they have an associated IOU transaction ID or - // - they have visible childActions (like comments) that we'd want to display // - the action is pending deletion and the user is offline - (!!originalMessage?.IOUTransactionID || - // eslint-disable-next-line @typescript-eslint/prefer-nullish-coalescing - (isMessageDeleted(action) && action.childVisibleActionCount) || - (action.pendingAction === CONST.RED_BRICK_ROAD_PENDING_ACTION.DELETE && (isOffline ?? isNetworkOffline))) + (!!originalMessage?.IOUTransactionID || (action.pendingAction === CONST.RED_BRICK_ROAD_PENDING_ACTION.DELETE && (isOffline ?? isNetworkOffline))) ) { iouRequestActions.push(action); }