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);