diff --git a/src/components/Spotify.tsx b/src/components/Spotify.tsx index 6e4f8de..8ec0c99 100644 --- a/src/components/Spotify.tsx +++ b/src/components/Spotify.tsx @@ -22,7 +22,8 @@ const fetcher = (url: string) => fetch(url).then(res => res.json()); export default function Spotify() { const { data } = useSWR( "/api/nowPlaying", - fetcher + fetcher, + { refreshInterval: 5000 } ); // Get the current track, ignoring episodes because those don't have the same info @@ -111,9 +112,9 @@ export default function Spotify() {

{track ? ( - +