diff --git a/pages/index.tsx b/pages/index.tsx
index 579d3a6..08ff646 100644
--- a/pages/index.tsx
+++ b/pages/index.tsx
@@ -14,7 +14,7 @@ import { FaSpotify } from 'react-icons/fa'
const fetcher = (url: RequestInfo) => fetch(url).then(r => r.json())
export default function() {
- const { data: spotify } = useSWR('/api/spotify', fetcher)
+ const { data: spotify } = useSWR('/api/spotify', fetcher, { refreshInterval: 1000 })
if(!spotify) return
@@ -40,7 +40,7 @@ export default function() {
{
spotify.song
?
- { spotify.song.artist + ' - ' + spotify.song.title }
+ { spotify.song.title || 'nothing' }
: nothing