Update spotify.ts
Some checks failed
Build And Publish / BuildAndPublish (push) Failing after 2m17s

This commit is contained in:
Ryan Freeman 2025-04-09 10:00:26 +01:00 committed by GitHub
parent f2eecf06d3
commit 191705bf8b
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -45,7 +45,12 @@ export const getCurrentlyPlaying = async () => {
export const getRecentlyPlayed = async () => {
try {
const {access_token}: Response = await getAccessToken() as Response
} catch(e) {
console.error(e)
return null
}
return await fetch(SPOTIFY_RECENTLY_PLAYED, {
headers: {