Handle songs without lyrics in player

This commit is contained in:
lucast committed 2026-09-25 23:00:27 +02:00
1 parent 8ee6164218
commit fdf2aeb675
2 files changed
+3 -3

No files matched your search

@@ -10,7 +10,7 @@ const { fullscreen } = useFullscreen()
const { secondsPlayed } = usePlayer()
const parsedLyrics = computed(() => {
if (!song.value || !song.value.lyrics.synced) return
if (!song.value?.lyrics?.synced) return
if (song.value.lyrics.synced) return parseLyrics(song.value.lyrics.text)
})
@@ -169,7 +169,7 @@ const finalTransform = computed(() => {
</div>
</div>
<div
v-else-if="song && song.lyrics && song.lyrics.text"
v-else-if="song?.lyrics?.text"
class="lyrics"
:style="{
height: `${height}px`,