Merge pull request #859 from jotak/hide-discover
Do not show discovery menu when spotify is not used
This commit is contained in:
4
src/js/components/Sidebar.js
Executable file → Normal file
4
src/js/components/Sidebar.js
Executable file → Normal 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));
|
||||
|
||||
|
||||
Reference in New Issue
Block a user