commcoach: unused totalWords entfernt

Made-with: Cursor
This commit is contained in:
ValueOn AG 2026-03-06 12:40:06 +01:00
parent 251a9ca1ea
commit cb45ecd52b

View file

@ -182,7 +182,6 @@ export const CommcoachDossierView: React.FC = () => {
const preview = [...transcriptPartsRef.current, currentInterim].join(' ').trim();
setLiveTranscript(preview);
if (preview) _resetSilenceTimer();
const totalWords = preview.split(/\s+/).filter(Boolean).length;
const finalizedWords = transcriptPartsRef.current.join(' ').split(/\s+/).filter(Boolean).length;
if (coach.isTtsPlayingRef.current && finalizedWords >= MIN_WORDS_TO_INTERRUPT) {
coach.stopTts();