commcoach: fix mobile speech recognition restart clearing state every 5s

Made-with: Cursor
This commit is contained in:
ValueOn AG 2026-03-06 14:12:31 +01:00
parent b28a7fcf33
commit e91eca025a

View file

@ -229,9 +229,6 @@ export const CommcoachDossierView: React.FC = () => {
_dlog('REC-END', `cancelled=${cancelled} sameRef=${speechRecognitionRef.current===recognition}`);
// #endregion
if (cancelled) return;
setIsUserSpeaking(false);
transcriptPartsRef.current = [];
setLiveTranscript('');
if (speechRecognitionRef.current === recognition) {
try { recognition.start(); } catch { speechRecognitionRef.current = null; }
}