diff --git a/web/components/search-location.tsx b/web/components/search-location.tsx index beb2d237..ddeb229a 100644 --- a/web/components/search-location.tsx +++ b/web/components/search-location.tsx @@ -110,11 +110,10 @@ export const useCitySearch = () => { if (query.length < 2) { setCities([]) return - } - if (query.length >= 2) { + } else { fetchData() } - }, 200) + }, 1000) return () => { clearTimeout(debounce)