From b046efe17fb8881d5b2df7791d50604fab2c53b5 Mon Sep 17 00:00:00 2001 From: Ajinkya Pande Date: Thu, 19 Sep 2024 11:10:53 +0530 Subject: [PATCH] Issueid #226614 feat: Record a retry Count and pass it to updatelearnerai - test-rig --- src/utils/AudioCompare.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/utils/AudioCompare.js b/src/utils/AudioCompare.js index 249ffc48..ed95de8b 100644 --- a/src/utils/AudioCompare.js +++ b/src/utils/AudioCompare.js @@ -45,7 +45,7 @@ const AudioRecorder = (props) => { const duration = { ...parsedDuration, micStartTime: micStartTime, - retryCount: retryCount + 1, + retryCount: !!props?.recordedAudio ? retryCount + 1 : 0, }; // Safely set the new duration data in localStorage