From 5444d33bd0b375f8835728f5fd0ad881392b6edb Mon Sep 17 00:00:00 2001 From: Chigozirim Igweamaka Date: Tue, 11 Jun 2024 03:09:31 +0100 Subject: [PATCH] Add fallbacks to recordData items --- client/src/App.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/client/src/App.js b/client/src/App.js index 73e1c10..d28a055 100644 --- a/client/src/App.js +++ b/client/src/App.js @@ -178,9 +178,9 @@ function App() { const recordData = { audio: rawAudio, - channels: audioConfig.channelCount, - sampleRate: audioConfig.sampleRate, - sampleSize: audioConfig.sampleSize, + channels: audioConfig.channelCount || 1, + sampleRate: audioConfig.sampleRate || 44100, + sampleSize: audioConfig.sampleSize || 16, }; if (sendRecordingRef.current) {