Updated SpotifyPlayer

This commit is contained in:
r-freeman 2023-01-18 20:24:41 +00:00
parent 65ddc18406
commit 40d65290c6

View File

@ -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 (
<div className="grid">