Skip to content

Commit

Permalink
Revert "Fix pay button after deleting expense"
Browse files Browse the repository at this point in the history
  • Loading branch information
luacmartins authored Dec 12, 2024
1 parent 94ab9cd commit b8eb012
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/libs/SearchUIUtils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}

Expand Down

0 comments on commit b8eb012

Please sign in to comment.