Fix type issue with spotify.ts
All checks were successful
Build And Publish / BuildAndPublish (push) Successful in 3m12s

This commit is contained in:
Ryan Freeman 2025-04-10 22:21:29 +01:00
parent acd3501193
commit 6cd8723962

View File

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