diff --git a/src/libs/ReportActionsUtils.ts b/src/libs/ReportActionsUtils.ts index 8e9926648c2c..236f9045d531 100644 --- a/src/libs/ReportActionsUtils.ts +++ b/src/libs/ReportActionsUtils.ts @@ -385,14 +385,6 @@ function getSortedReportActions(reportActions: ReportAction[] | null, shouldSort return sortedActions; } -/** - * Returns filtered list for one transaction view as we don't want to display IOU action type in the one-transaction view - * Separated it from getCombinedReportActions, so it can be reused - */ -function getFilteredForOneTransactionView(reportActions: ReportAction[]): ReportAction[] { - return reportActions.filter((action) => !isSentMoneyReportAction(action)); -} - /** * Returns a sorted and filtered list of report actions from a report and it's associated child * transaction thread report in order to correctly display reportActions from both reports in the one-transaction report view. @@ -1598,7 +1590,6 @@ export { getAllReportActions, getCombinedReportActions, getDismissedViolationMessageText, - getFilteredForOneTransactionView, getFirstVisibleReportActionID, getIOUActionForReportID, getIOUReportIDFromReportActionPreview, diff --git a/src/pages/home/report/ReportActionsView.tsx b/src/pages/home/report/ReportActionsView.tsx index a3ae69be722e..fb99f8508f6f 100755 --- a/src/pages/home/report/ReportActionsView.tsx +++ b/src/pages/home/report/ReportActionsView.tsx @@ -215,8 +215,7 @@ function ReportActionsView({ createdAction.pendingAction = CONST.RED_BRICK_ROAD_PENDING_ACTION.UPDATE; } - // moneyRequestActions.length === 1 indicates that we have one-transaction report and we don't want to display additonal IOU action - return moneyRequestActions.length === 1 ? ReportActionsUtils.getFilteredForOneTransactionView([...actions, createdAction]) : [...actions, createdAction]; + return [...actions, createdAction]; }, [allReportActions, report, transactionThreadReport]); // Get a sorted array of reportActions for both the current report and the transaction thread report associated with this report (if there is one)