From 39629897d4087dd7c91b6c6d9a203a147c719a36 Mon Sep 17 00:00:00 2001 From: Toba Ojo Date: Thu, 30 Oct 2025 10:53:48 +0000 Subject: [PATCH] - removed console.logs --- src/components/SettingForms/Sound/SoundUpload.tsx | 1 - src/hooks/useFileUpload.ts | 2 -- src/utils/cacheSound.ts | 3 --- 3 files changed, 6 deletions(-) diff --git a/src/components/SettingForms/Sound/SoundUpload.tsx b/src/components/SettingForms/Sound/SoundUpload.tsx index 7de9851..f486d47 100644 --- a/src/components/SettingForms/Sound/SoundUpload.tsx +++ b/src/components/SettingForms/Sound/SoundUpload.tsx @@ -22,7 +22,6 @@ const SoundUpload = () => { }; const handleSubmit = async (values: SoundUploadValue) => { - console.log(values); if (!values.soundFile) { toast.warning("Please select an audio file"); return; diff --git a/src/hooks/useFileUpload.ts b/src/hooks/useFileUpload.ts index 51a70e4..7bab593 100644 --- a/src/hooks/useFileUpload.ts +++ b/src/hooks/useFileUpload.ts @@ -23,8 +23,6 @@ const uploadFile = async (file: File) => { const getUploadFiles = async ({ queryKey }: { queryKey: string[] }) => { const [, fileName] = queryKey; - - // console.log(`${camBase}/Mobile/${fileName}`); const url = fileName; return getOrCacheBlob(url); }; diff --git a/src/utils/cacheSound.ts b/src/utils/cacheSound.ts index 8ccc3c3..d11f825 100644 --- a/src/utils/cacheSound.ts +++ b/src/utils/cacheSound.ts @@ -1,12 +1,9 @@ export async function getOrCacheBlob(url: string) { - console.log(url); const cache = await caches.open("app-sounds-v1"); - if (cache) console.log(cache); const hit = await cache.match(url); if (hit) return await hit.blob(); const res = await fetch(url, { cache: "no-store" }); - console.log("fetching..."); if (!res.ok) throw new Error(`Fetch failed: ${res.status}`); await cache.put(url, res.clone());