From 9188071a6fb46f4cb93dc32f4ef89fadf16e29d0 Mon Sep 17 00:00:00 2001 From: Mike Smith Date: Thu, 5 Dec 2024 17:17:12 +0000 Subject: [PATCH] Fix start new chat --- frontend/src/useMessages.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/frontend/src/useMessages.ts b/frontend/src/useMessages.ts index 89afc4f5..32ecfbf8 100644 --- a/frontend/src/useMessages.ts +++ b/frontend/src/useMessages.ts @@ -91,6 +91,7 @@ export const useMessages = (): UseMessagesHook => { await resetChat(); setWaiting(false); setMessages([{ ...starterMessage, time: new Date().toLocaleTimeString() }]); + selectMessage(null); setSuggestions([]); fetchSuggestions(); }, []);