From 8bb573f1dcc19f4fa2ec53f2b9fcaa30e5b31aaa Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Hanno=20J=2E=20G=C3=B6decke?= Date: Tue, 26 Nov 2024 13:34:40 +0100 Subject: [PATCH] fix usage --- src/pages/NewChatPage.tsx | 1 - src/pages/settings/Security/AddDelegate/AddDelegatePage.tsx | 1 - src/pages/tasks/TaskAssigneeSelectorModal.tsx | 3 +-- 3 files changed, 1 insertion(+), 4 deletions(-) diff --git a/src/pages/NewChatPage.tsx b/src/pages/NewChatPage.tsx index 2a19cd031806..cbc43254c412 100755 --- a/src/pages/NewChatPage.tsx +++ b/src/pages/NewChatPage.tsx @@ -56,7 +56,6 @@ function useOptions() { { betas: betas ?? [], selectedOptions, - maxRecentReportsToShow: 0, includeSelfDM: true, }, ); diff --git a/src/pages/settings/Security/AddDelegate/AddDelegatePage.tsx b/src/pages/settings/Security/AddDelegate/AddDelegatePage.tsx index 4f37e5439951..622e14ff9813 100644 --- a/src/pages/settings/Security/AddDelegate/AddDelegatePage.tsx +++ b/src/pages/settings/Security/AddDelegate/AddDelegatePage.tsx @@ -35,7 +35,6 @@ function useOptions() { { betas, excludeLogins: [...CONST.EXPENSIFY_EMAILS, ...existingDelegates], - maxRecentReportsToShow: 0, }, ); diff --git a/src/pages/tasks/TaskAssigneeSelectorModal.tsx b/src/pages/tasks/TaskAssigneeSelectorModal.tsx index d51e62ae836a..5461611c4260 100644 --- a/src/pages/tasks/TaskAssigneeSelectorModal.tsx +++ b/src/pages/tasks/TaskAssigneeSelectorModal.tsx @@ -48,7 +48,6 @@ function useOptions() { { betas, excludeLogins: CONST.EXPENSIFY_EMAILS, - maxRecentReportsToShow: 0, }, ); @@ -69,7 +68,7 @@ function useOptions() { }, [optionsList.reports, optionsList.personalDetails, betas, isLoading]); const options = useMemo(() => { - const filteredOptions = OptionsListUtils.filterAndOrderOptionsrOptions(defaultOptions, debouncedSearchValue.trim(), { + const filteredOptions = OptionsListUtils.filterAndOrderOptions(defaultOptions, debouncedSearchValue.trim(), { excludeLogins: CONST.EXPENSIFY_EMAILS, maxRecentReportsToShow: CONST.IOU.MAX_RECENT_REPORTS_TO_SHOW, });