diff --git a/components/search.js b/components/search.js index a0c27d2a..afce3ff6 100644 --- a/components/search.js +++ b/components/search.js @@ -36,7 +36,9 @@ export default function Search () { }} className={`w-auto ${styles.active}`} onSubmit={async ({ q }) => { - router.push(`/search?q=${q}`) + if (q != '') { + router.push(`/search?q=${q}`) + } }} >