From ed8c0b23a0ecc4ebd8deb2399330862b1a734a05 Mon Sep 17 00:00:00 2001 From: "Timothy J. Baek" Date: Fri, 2 Aug 2024 17:41:15 +0200 Subject: [PATCH] refac --- src/lib/components/chat/Controls/Valves.svelte | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/lib/components/chat/Controls/Valves.svelte b/src/lib/components/chat/Controls/Valves.svelte index 17efc019f..103ad27a9 100644 --- a/src/lib/components/chat/Controls/Valves.svelte +++ b/src/lib/components/chat/Controls/Valves.svelte @@ -34,7 +34,6 @@ let debounceTimer; const debounceSubmitHandler = async () => { - // debounce 1 second if (debounceTimer) { clearTimeout(debounceTimer); } @@ -42,7 +41,7 @@ // Set a new timer debounceTimer = setTimeout(() => { submitHandler(); - }, 1000); // 1 second debounce + }, 500); // 0.5 second debounce }; const getUserValves = async () => {