prevent initially rendering non-sync romaji generated lyrics on karaoke lyrics

This commit is contained in:
jeffvli
2026-07-11 18:50:03 -07:00
parent bafc14b55a
commit 0270e9e9e5
4 changed files with 39 additions and 17 deletions
@@ -193,11 +193,13 @@ export const KaraokeLyricLine = memo(
[fontSize, alignment],
);
const hasSyncedRomaji = romajiCueLines != null;
const hasSyncedRomajiOverlay = romajiCueLines !== undefined;
const hasSyncedPronunciation = hasSyncedOverlayCueLines(pronunciationCueLines);
const hasSyncedTranslation = hasSyncedOverlayCueLines(translationCueLines);
const pronunciationFallbackText =
!hasSyncedRomaji && !hasSyncedPronunciation ? (pronunciationText ?? romajiText) : null;
!hasSyncedRomajiOverlay && !hasSyncedPronunciation
? (pronunciationText ?? romajiText)
: null;
return (
<Box