mirror of
https://github.com/r-freeman/portfolio.git
synced 2024-11-11 18:25:41 +00:00
Updated SpotifyPlayer
This commit is contained in:
parent
65ddc18406
commit
40d65290c6
@ -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">
|
||||
|
Loading…
Reference in New Issue
Block a user