Skip to content

Commit

Permalink
Merge pull request #54042 from Expensify/revert-53722-cmartins-fixOnePay
Browse files Browse the repository at this point in the history
[CP Staging] Revert "Fix pay button after deleting expense"

(cherry picked from commit 40ccc77)

(CP triggered by luacmartins)
  • Loading branch information
luacmartins authored and OSBotify committed Dec 12, 2024
1 parent 8470804 commit 3d31d74
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 @@ -265,8 +265,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 3d31d74

Please sign in to comment.