Skip to content

Commit

Permalink
add a console log for debugging
Browse files Browse the repository at this point in the history
  • Loading branch information
s1lvax committed Oct 23, 2024
1 parent 54c6378 commit 203e5d7
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/lib/utils/spotify/fetchSpotifyCurrentlyPlaying.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,8 @@ export const fetchSpotifyCurrentlyPlaying = async (accessToken: string) => {
}
});

console.log('Response from fetchSpotifyCurrentlyPlaying: ', response);

if (response.status === 204 || !response.ok) {
// Return null if no content (204) or if there's an error
return null;
Expand Down

0 comments on commit 203e5d7

Please sign in to comment.