Skip to content

Commit

Permalink
Merge pull request #568 from Stremio/fix-search-history-visibility
Browse files Browse the repository at this point in the history
fix: search-history visibility
  • Loading branch information
tymmesyde committed Jan 29, 2024
2 parents 0dd0c97 + bb4b937 commit 244fb8b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/common/NavBar/HorizontalNavBar/SearchBar/SearchBar.js
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ const SearchBar = React.memo(({ className, query, active }) => {
const localSearch = useLocalSearch();
const { createTorrentFromMagnet } = useTorrent();

const [historyOpen, openHistory, closeHistory, ] = useBinaryState(false);
const [historyOpen, openHistory, closeHistory, ] = useBinaryState(query === null ? true : false);
const [currentQuery, setCurrentQuery] = React.useState(query || '');

const searchInputRef = React.useRef(null);
Expand Down

0 comments on commit 244fb8b

Please sign in to comment.