From b2b3faa9a78b722947e028506e5d88bf8c2ecc74 Mon Sep 17 00:00:00 2001 From: Reinaldo Neto Date: Thu, 2 Feb 2023 15:51:36 -0300 Subject: [PATCH] remove await from load --- app/views/DiscussionsView/index.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/views/DiscussionsView/index.tsx b/app/views/DiscussionsView/index.tsx index 0891f5ec4..ea937eaa0 100644 --- a/app/views/DiscussionsView/index.tsx +++ b/app/views/DiscussionsView/index.tsx @@ -82,12 +82,12 @@ const DiscussionsView = ({ navigation, route }: IDiscussionsViewProps): React.Re } }; - const onSearchChangeText = useDebounce(async (text: string) => { + const onSearchChangeText = useDebounce((text: string) => { setIsSearching(true); setSearch([]); searchText.current = text; offset.current = 0; - await load(); + load(); }, 500); const onCancelSearchPress = () => {