Skip to content

Commit

Permalink
When searching set show favourites to false
Browse files Browse the repository at this point in the history
This allows to go back to the favouritse from the search results
  • Loading branch information
randombenj committed Oct 18, 2024
1 parent 076618b commit d7d3c36
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions web/src/components/SearchBar.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,7 @@ export default function SearchBar(props: Props): JSX.Element {
}

const onSearch = (e: React.ChangeEvent<HTMLInputElement>): void => {
setShowFavourites(false)
updateSearch(e.target.value)
}

Expand Down

0 comments on commit d7d3c36

Please sign in to comment.