Skip to content

Commit

Permalink
Merge pull request #1734 from stakwork/bugfix/search-for-topics
Browse files Browse the repository at this point in the history
feat: fix search with space
  • Loading branch information
Rassl authored Jun 26, 2024
2 parents ed7fd8f + b4230ba commit eaa42b8
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,9 @@ const Search: React.FC<SearchProps> = ({
const handleChange = (e: ChangeEvent<HTMLInputElement>) => {
const trimmedValue = e.target.value.trim()

setSearchTerm(trimmedValue)
const { value } = e.target

setSearchTerm(value)

if (!trimmedValue) {
resetSearch()
Expand Down

0 comments on commit eaa42b8

Please sign in to comment.