Skip to content

Commit 531ef4e

Browse files
committed
fix: remove unnecessary check for station count in MusicToggle component
1 parent 5126b84 commit 531ef4e

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

src/components/music-toggle.tsx

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -289,7 +289,6 @@ export function MusicToggle({ className }: { className?: string }) {
289289
errorCountRef.current = 0
290290
setStationIndex((prev) => {
291291
const count = STATIONS.length
292-
if (count === 0) return prev
293292
return direction === 'next'
294293
? (prev + 1) % count
295294
: (prev + count - 1) % count

0 commit comments

Comments
 (0)