diff --git a/src/use/favorites.js b/src/use/favorites.js index 245b7a8..fac786e 100644 --- a/src/use/favorites.js +++ b/src/use/favorites.js @@ -34,6 +34,11 @@ const refreshFavorites = ({ isInitial = false }) => { spotifyUser: store.getters.getSpotifyUser.id }) .then(spotifyPlaylists => { + if (spotifyPlaylists.error === 'spotifyNotEnabled') { + favoriteSpotifyPlaylists.value = [] + return + } + favoriteSpotifyPlaylists.value = spotifyPlaylists }) .catch(console.error)