diff --git a/pages/index.page.tsx b/pages/index.page.tsx index f85a21d..b3ca86d 100644 --- a/pages/index.page.tsx +++ b/pages/index.page.tsx @@ -107,7 +107,9 @@ const Home = () => { const handleSearchSubmit = (value: string) => { Analytics.performedSearch(value.trim()) - router.push(`/package/${value.trim()}`) + if (value ?? '') { + router.push(`/package/${value.trim()}`) + } } return (