diff --git a/src/app/liveseries/search/search-form.tsx b/src/app/liveseries/search/search-form.tsx index 27577d8..792b17d 100644 --- a/src/app/liveseries/search/search-form.tsx +++ b/src/app/liveseries/search/search-form.tsx @@ -13,10 +13,14 @@ export function SearchForm({ userLanguage }: { userLanguage: Language }) { const data = TRANSLATIONS[userLanguage]; function getSearchPath() { - const query = new URLSearchParams({ q: inputValue.trim() }); + const trimmed = inputValue.trim(); + if (!trimmed) return ""; + const query = new URLSearchParams({ q: trimmed }); return `/liveseries/search?${query}`; } + const path = getSearchPath(); + return (
); }