We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5126b84 commit 531ef4eCopy full SHA for 531ef4e
src/components/music-toggle.tsx
@@ -289,7 +289,6 @@ export function MusicToggle({ className }: { className?: string }) {
289
errorCountRef.current = 0
290
setStationIndex((prev) => {
291
const count = STATIONS.length
292
- if (count === 0) return prev
293
return direction === 'next'
294
? (prev + 1) % count
295
: (prev + count - 1) % count
0 commit comments