We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent b6c9780 commit df85776Copy full SHA for df85776
next05/app/components/Search.tsx
@@ -7,7 +7,7 @@ export default function Search() {
7
const [search, setSearch] = useState('')
8
const router = useRouter()
9
10
- const handleSubmit = async (e: FormEvent<HTMLFormElement>) => {
+ const handleSubmit = (e: FormEvent<HTMLFormElement>) => {
11
e.preventDefault()
12
setSearch('')
13
router.push(`/${search}/`)
0 commit comments