From f264f4e808242fa82ae1a18f1edf0258adea32d1 Mon Sep 17 00:00:00 2001 From: Toba Ojo Date: Thu, 23 Oct 2025 09:19:18 +0100 Subject: [PATCH] - resolved coding error --- src/components/SettingForms/Sound/SoundSettingsFields.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/components/SettingForms/Sound/SoundSettingsFields.tsx b/src/components/SettingForms/Sound/SoundSettingsFields.tsx index 7b03d03..be098cb 100644 --- a/src/components/SettingForms/Sound/SoundSettingsFields.tsx +++ b/src/components/SettingForms/Sound/SoundSettingsFields.tsx @@ -43,7 +43,7 @@ const SoundSettingsFields = () => { }; const handleSubmit = async (values: FormValues) => { console.log(query?.data); - const url = URL.createObjectURL(query?.data); + const url = query?.data ? URL.createObjectURL(query.data) : ""; // const audio = new Audio(url); // console.log(audio); setTest(url);