Skip to content

Commit

Permalink
Clear search bar query bug
Browse files Browse the repository at this point in the history
  • Loading branch information
jesshan70 committed May 4, 2023
1 parent 4455671 commit 1ec721e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion frontend/src/components/Home/Autocomplete.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -83,8 +83,8 @@ export default function Autocomplete() {
} else if (event.key === 'Enter') {
setFocus(true);
history.push(`/search?q=${query}`);
setQuery('');
setOpen(false);
setQuery('');
}
}

Expand Down

0 comments on commit 1ec721e

Please sign in to comment.