Merge pull request #859 from jotak/hide-discover

Do not show discovery menu when spotify is not used
This commit is contained in:
James Barnsley
2023-01-02 21:42:14 +13:00
committed by GitHub

4
src/js/components/Sidebar.js Executable file → Normal file
View File

@ -72,7 +72,9 @@ const StatusIcon = () => {
const Sidebar = () => {
const dispatch = useDispatch();
const spotify_available = useSelector((state) => state.spotify.access_token);
const spotify_enabled = useSelector((state) => state.spotify.enabled);
const spotify_has_token = useSelector((state) => state.spotify.access_token);
const spotify_available = spotify_enabled && spotify_has_token;
const close = () => dispatch(toggleSidebar(false));