diff --git a/src/js/components/Sidebar.js b/src/js/components/Sidebar.js index 73697a13..77bf3682 100755 --- a/src/js/components/Sidebar.js +++ b/src/js/components/Sidebar.js @@ -66,7 +66,8 @@ 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 close = () => dispatch(toggleSidebar(false)); @@ -85,27 +86,31 @@ const Sidebar = () => { - {spotify_available && ( + {spotify_enabled && (
<I18n path="sidebar.discover" /> - - - - + {spotify_has_token && ( + + + + + )} - - - - + {spotify_has_token && ( + + + + + )}