From 559df8b3fe23d5a0a2812d2e171acb543976336a Mon Sep 17 00:00:00 2001 From: Oliver Wilks Date: Wed, 18 Jan 2023 21:36:36 +0000 Subject: [PATCH] Changed getIOUReportActions filter order --- src/libs/IOUUtils.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/libs/IOUUtils.js b/src/libs/IOUUtils.js index 5c1538682ce..b4e8f1ff46c 100644 --- a/src/libs/IOUUtils.js +++ b/src/libs/IOUUtils.js @@ -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();