fix: romaji duplicate lines for non-Japanese lyrics (#2188)

This commit is contained in:
York
2026-06-30 10:11:46 +08:00
committed by GitHub
parent aa3c9251f5
commit a221a84792
2 changed files with 3 additions and 3 deletions
@@ -43,7 +43,7 @@ export const useRomajiLyrics = (lyrics: LyricsResponse | null | undefined, enabl
const convertedLines = converted.split('\n');
return lyrics.map(([time], i) => [
time,
convertedLines[i] ?? lyrics[i][1],
convertedLines[i] ?? '',
]) as SynchronizedLyricsArray;
}
return lyrics;