Skip to content

Commit 97d5921

Browse files
authored
Merge pull request #53722 from Expensify/cmartins-fixOnePay
Fix pay button after deleting expense
2 parents 8749259 + a9162a8 commit 97d5921

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/libs/SearchUIUtils.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -265,8 +265,8 @@ function getAction(data: OnyxTypes.SearchResults['data'], key: string): SearchTr
265265
return CONST.SEARCH.ACTION_TYPES.DONE;
266266
}
267267

268-
// 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
269-
if (!ReportUtils.isMoneyRequestReport(report) || (isTransaction && !data[key].isFromOneTransactionReport)) {
268+
// 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
269+
if (!ReportUtils.isMoneyRequestReport(report)) {
270270
return CONST.SEARCH.ACTION_TYPES.VIEW;
271271
}
272272

0 commit comments

Comments
 (0)