Skip to content

Commit

Permalink
Merge pull request #14400 from Ollyws/issue-14355
Browse files Browse the repository at this point in the history
Fix for: App crashes when splitting a bill offline
  • Loading branch information
yuwenmemon authored Jan 24, 2023
2 parents 4d86f17 + 559df8b commit 614da95
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 614da95

Please sign in to comment.