From 203e5d7a5f6fc5ba51d4132fa411786bdabb4593 Mon Sep 17 00:00:00 2001 From: s1lvax Date: Wed, 23 Oct 2024 19:10:56 +0200 Subject: [PATCH] add a console log for debugging --- src/lib/utils/spotify/fetchSpotifyCurrentlyPlaying.ts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/lib/utils/spotify/fetchSpotifyCurrentlyPlaying.ts b/src/lib/utils/spotify/fetchSpotifyCurrentlyPlaying.ts index 1b209eb..c798c98 100644 --- a/src/lib/utils/spotify/fetchSpotifyCurrentlyPlaying.ts +++ b/src/lib/utils/spotify/fetchSpotifyCurrentlyPlaying.ts @@ -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;