From cf72a1e1d3368f8040faa8e5dbadd266ad7d78c4 Mon Sep 17 00:00:00 2001 From: Toba Ojo Date: Tue, 28 Oct 2025 15:23:28 +0000 Subject: [PATCH] - fixed file size bug --- src/components/SettingForms/Sound/SoundUpload.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/components/SettingForms/Sound/SoundUpload.tsx b/src/components/SettingForms/Sound/SoundUpload.tsx index 52fc346..0ed61a2 100644 --- a/src/components/SettingForms/Sound/SoundUpload.tsx +++ b/src/components/SettingForms/Sound/SoundUpload.tsx @@ -65,7 +65,7 @@ const SoundUpload = () => { className="mt-4 w-full flex flex-col items-center justify-center rounded-2xl border border-slate-800 bg-slate-900/40 p-10 text-center file:px-3 file:border file:border-gray-500 file:rounded-lg file:bg-blue-800 file:mr-5" onChange={(e) => { if (e.target?.files && e.target?.files[0]?.type === "audio/mpeg") { - if (e.target.files[0].size / (1024 * 1024) <= 1) { + if (e.target.files[0].size / (1024 * 1024) >= 1) { toast.error("File is too large. Max size is 1MB"); return; }