Skip to content

Commit

Permalink
only include deleted IOUs if they have visible child actions we need …
Browse files Browse the repository at this point in the history
…to display
  • Loading branch information
NikkiWines committed Apr 4, 2024
1 parent f9d5eaa commit a0a3ff0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/libs/ReportActionsUtils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -230,8 +230,8 @@ function getOneTransactionThreadReportID(reportActions: OnyxEntry<ReportActions>
action.actionName === CONST.REPORT.ACTIONS.TYPE.IOU &&
(iouRequestTypes.includes(action.originalMessage.type) ?? []) &&
action.childReportID &&
// Include deleted IOU reportActions because they might have associated comments that we'd want to display
(action.originalMessage.deleted || action.originalMessage.IOUTransactionID),
// Include deleted IOU reportActions if they have childAactions because we want to display those comments
((action.originalMessage.deleted && action.childVisibleActionCount) || action.originalMessage.IOUTransactionID),
);

// If we don't have any IOU request actions, or we have more than one IOU request actions, this isn't a oneTransaction report
Expand Down

0 comments on commit a0a3ff0

Please sign in to comment.