From af27f774f1d92cae69a6574347db3f214a936eab Mon Sep 17 00:00:00 2001 From: Fedi Rajhi Date: Thu, 22 Jun 2023 14:53:16 +0100 Subject: [PATCH] [Fix] Invalid number of arguments [Fix] use accountID instead of login [Fix] test revert changes revert changes [Fix] Invalid number of arguments --- src/libs/OptionsListUtils.js | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/libs/OptionsListUtils.js b/src/libs/OptionsListUtils.js index 611f44f751db..b4f63ff2776b 100644 --- a/src/libs/OptionsListUtils.js +++ b/src/libs/OptionsListUtils.js @@ -618,9 +618,7 @@ function getOptions( const searchValue = parsedPhoneNumber.possible ? parsedPhoneNumber.number.e164 : searchInputValue; // Filter out all the reports that shouldn't be displayed - const filteredReports = _.filter(reports, (report) => - ReportUtils.shouldReportBeInOptionList(report, Navigation.getReportIDFromRoute(), false, currentUserLogin, iouReports, betas, policies), - ); + const filteredReports = _.filter(reports, (report) => ReportUtils.shouldReportBeInOptionList(report, Navigation.getReportIDFromRoute(), false, iouReports, betas, policies)); // Sorting the reports works like this: // - Order everything by the last message timestamp (descending)