mirror of
https://github.com/r-freeman/portfolio.git
synced 2024-11-22 23:15: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 currentlyPlaying = usePlayerState('currently-playing')
|
||||||
const lastPlayed = usePlayerState('last-played')
|
const lastPlayed = usePlayerState('last-played')
|
||||||
|
|
||||||
if (currentlyPlaying.isError) return null
|
if (currentlyPlaying.isError || lastPlayed.isError) return null
|
||||||
if (lastPlayed.isError) return null
|
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<div className="grid">
|
<div className="grid">
|
||||||
|
Loading…
Reference in New Issue
Block a user