Skip to content

Commit

Permalink
Changed getIOUReportActions filter order
Browse files Browse the repository at this point in the history
  • Loading branch information
Ollyws committed Jan 18, 2023
1 parent 5370c36 commit 559df8b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/libs/IOUUtils.js
Original file line number Diff line number Diff line change
Expand Up @@ -82,8 +82,8 @@ function getIOUReportActions(reportActions, iouReport, type = '', pendingAction
return _.chain(reportActions)
.filter(action => action.originalMessage
&& action.actionName === CONST.REPORT.ACTIONS.TYPE.IOU
&& action.originalMessage.IOUReportID.toString() === iouReport.reportID.toString())
.filter(action => (!_.isEmpty(type) ? action.originalMessage.type === type : true))
&& (!_.isEmpty(type) ? action.originalMessage.type === type : true))
.filter(action => action.originalMessage.IOUReportID.toString() === iouReport.reportID.toString())
.filter(action => (!_.isEmpty(pendingAction) ? action.pendingAction === pendingAction : true))
.filter(action => (filterRequestsInDifferentCurrency ? action.originalMessage.currency !== iouReport.currency : true))
.value();
Expand Down

0 comments on commit 559df8b

Please sign in to comment.