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); } };