Merge branch 'develop' of github.com:jaedb/Iris into develop

This commit is contained in:
James Barnsley
2023-01-02 21:45:16 +13:00

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