From 40d65290c612c94ef73be765c642c7a936265da8 Mon Sep 17 00:00:00 2001 From: r-freeman Date: Wed, 18 Jan 2023 20:24:41 +0000 Subject: [PATCH] Updated SpotifyPlayer --- src/components/SpotifyPlayer.tsx | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/components/SpotifyPlayer.tsx b/src/components/SpotifyPlayer.tsx index 6a5cd01..dd44b39 100644 --- a/src/components/SpotifyPlayer.tsx +++ b/src/components/SpotifyPlayer.tsx @@ -184,8 +184,7 @@ export function SpotifyPlayer(): ReactElement | null { const currentlyPlaying = usePlayerState('currently-playing') const lastPlayed = usePlayerState('last-played') - if (currentlyPlaying.isError) return null - if (lastPlayed.isError) return null + if (currentlyPlaying.isError || lastPlayed.isError) return null return (