diff --git a/src/libs/SearchUIUtils.ts b/src/libs/SearchUIUtils.ts index ab99cdac0fca..761b8fefb047 100644 --- a/src/libs/SearchUIUtils.ts +++ b/src/libs/SearchUIUtils.ts @@ -271,8 +271,8 @@ function getAction(data: OnyxTypes.SearchResults['data'], key: string): SearchTr return CONST.SEARCH.ACTION_TYPES.DONE; } - // We don't need to run the logic if this is not an iou/expense report, so let's shortcircuit the logic for performance reasons - if (!ReportUtils.isMoneyRequestReport(report)) { + // We don't need to run the logic if this is not a transaction or iou/expense report, so let's shortcircuit the logic for performance reasons + if (!ReportUtils.isMoneyRequestReport(report) || (isTransaction && !data[key].isFromOneTransactionReport)) { return CONST.SEARCH.ACTION_TYPES.VIEW; }