Skip to content

Commit

Permalink
Merge pull request #53722 from Expensify/cmartins-fixOnePay
Browse files Browse the repository at this point in the history
Fix pay button after deleting expense
  • Loading branch information
grgia authored Dec 11, 2024
2 parents 8749259 + a9162a8 commit 97d5921
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 a transaction or iou/expense report, so let's shortcircuit the logic for performance reasons
if (!ReportUtils.isMoneyRequestReport(report) || (isTransaction && !data[key].isFromOneTransactionReport)) {
// 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)) {
return CONST.SEARCH.ACTION_TYPES.VIEW;
}

Expand Down

0 comments on commit 97d5921

Please sign in to comment.