diff --git a/src/chatbox.tsx b/src/chatbox.tsx index 168cc1a..dd70603 100644 --- a/src/chatbox.tsx +++ b/src/chatbox.tsx @@ -21,7 +21,7 @@ export default function ChatBOX(props: { useEffect(() => { console.log("ref", messagesEndRef); messagesEndRef.current.scrollIntoView({ behavior: "smooth" }); - }, [showRetry, showGenerating]); + }, [showRetry, showGenerating, generatingMessage]); const client = new ChatGPT(chatStore.apiKey);