From 8514669053f13422076d143b060a1bdaf02897ea Mon Sep 17 00:00:00 2001 From: Timothy Jaeryang Baek Date: Sun, 4 May 2025 18:59:36 +0400 Subject: [PATCH] refac --- src/lib/components/chat/Chat.svelte | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/lib/components/chat/Chat.svelte b/src/lib/components/chat/Chat.svelte index 283c8501d..9f8f1d326 100644 --- a/src/lib/components/chat/Chat.svelte +++ b/src/lib/components/chat/Chat.svelte @@ -2040,7 +2040,7 @@ {stopResponse} {createMessagePair} onChange={(input) => { - if (input.prompt) { + if (input.prompt !== null) { localStorage.setItem(`chat-input-${$chatId}`, JSON.stringify(input)); } else { localStorage.removeItem(`chat-input-${$chatId}`);