From 536db13ad1657951c90175ea11538313f277560a Mon Sep 17 00:00:00 2001 From: heimoshuiyu Date: Thu, 16 Mar 2023 21:12:38 +0800 Subject: [PATCH] fianlly setShowGenerating false --- src/chatbox.tsx | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/chatbox.tsx b/src/chatbox.tsx index 1d4a4e3..d3efda7 100644 --- a/src/chatbox.tsx +++ b/src/chatbox.tsx @@ -110,6 +110,8 @@ export default function ChatBOX(props: { setChatStore({ ...chatStore }); } catch (error) { alert(error); + } finally { + setShowGenerating(false); } };