From cb45ecd52b2f68c0682b89efe6d017d760180367 Mon Sep 17 00:00:00 2001 From: ValueOn AG Date: Fri, 6 Mar 2026 12:40:06 +0100 Subject: [PATCH] commcoach: unused totalWords entfernt Made-with: Cursor --- src/pages/views/commcoach/CommcoachDossierView.tsx | 1 - 1 file changed, 1 deletion(-) diff --git a/src/pages/views/commcoach/CommcoachDossierView.tsx b/src/pages/views/commcoach/CommcoachDossierView.tsx index 1ac75f5..57ea656 100644 --- a/src/pages/views/commcoach/CommcoachDossierView.tsx +++ b/src/pages/views/commcoach/CommcoachDossierView.tsx @@ -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();