From 6f9080dfe026348c7e6492dad68d44efdadac5cc Mon Sep 17 00:00:00 2001 From: "Timothy J. Baek" Date: Sun, 6 Oct 2024 21:42:47 -0700 Subject: [PATCH] fix: call mode not working in landing page --- src/lib/components/chat/ChatControls.svelte | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/lib/components/chat/ChatControls.svelte b/src/lib/components/chat/ChatControls.svelte index 68c976b5c..45d9b93dc 100644 --- a/src/lib/components/chat/ChatControls.svelte +++ b/src/lib/components/chat/ChatControls.svelte @@ -83,7 +83,7 @@ document.removeEventListener('mouseup', onMouseUp); }); - $: if (!chatId) { + const closeHandler = () => { showControls.set(false); showOverview.set(false); showArtifacts.set(false); @@ -91,6 +91,10 @@ if ($showCallOverlay) { showCallOverlay.set(false); } + }; + + $: if (!chatId) { + closeHandler(); }