fix: search-history visibility

This commit is contained in:
kKaskak 2024-01-29 11:21:34 +02:00
parent 0dd0c970ff
commit bb4b937678

View file

@ -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);