remove await from load

This commit is contained in:
Reinaldo Neto 2023-02-02 15:51:36 -03:00
parent 68e9a3aef7
commit b2b3faa9a7
1 changed files with 2 additions and 2 deletions

View File

@ -82,12 +82,12 @@ const DiscussionsView = ({ navigation, route }: IDiscussionsViewProps): React.Re
} }
}; };
const onSearchChangeText = useDebounce(async (text: string) => { const onSearchChangeText = useDebounce((text: string) => {
setIsSearching(true); setIsSearching(true);
setSearch([]); setSearch([]);
searchText.current = text; searchText.current = text;
offset.current = 0; offset.current = 0;
await load(); load();
}, 500); }, 500);
const onCancelSearchPress = () => { const onCancelSearchPress = () => {