From dea37f0941376f6b9a4d0c4b361abfa953504299 Mon Sep 17 00:00:00 2001 From: Guillaume Chervet Date: Fri, 1 Nov 2024 19:55:07 +0100 Subject: [PATCH] start cleanning --- production/webapp/src/AudioRecorderComponent.jsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/production/webapp/src/AudioRecorderComponent.jsx b/production/webapp/src/AudioRecorderComponent.jsx index 2366515..5b4c736 100644 --- a/production/webapp/src/AudioRecorderComponent.jsx +++ b/production/webapp/src/AudioRecorderComponent.jsx @@ -118,7 +118,7 @@ const AudioRecorderComponent = ({}) => { onDataAvailable: (data) => { console.log('Enregistrement de données audio (callback)'); setChunkIndex((prevIndex) => { - closureChunkIndex++; + closureChunkIndex = prevIndex + 1; return prevIndex + 1; }); sendAudioChunk(fetch, baseUrl)(data, clientId, closureChunkIndex);