Skip to content

Commit bd4bec3

Browse files
committed
🐛(mobile) aligned speaker numbering on mobile to the web version
There was a slight discrepency in the scripts. Web version was better.
1 parent b681b4d commit bd4bec3

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

src/mobile/src/features/ai-jobs/utils/transcript.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,8 +61,10 @@ export function buildTranscriptViewSegments(
6161
if (!transcript) return []
6262

6363
// We need to fix the speaker from WhisperX
64-
const speakerMapped = new Map<string | null, string>()
64+
const speakerMapped = new Map<string, string>()
6565
const getSpeaker = (speaker: string | null): string | null => {
66+
if (!speaker) return null
67+
6668
if (!speakerMapped.has(speaker)) {
6769
speakerMapped.set(speaker, String(speakerMapped.size + 1))
6870
}

0 commit comments

Comments
 (0)