diff --git a/app/components/index.tsx b/app/components/index.tsx index 3ebc4b8..ff098f5 100644 --- a/app/components/index.tsx +++ b/app/components/index.tsx @@ -63,6 +63,8 @@ const Main: FC = () => { const [conversationIdChangeBecauseOfNew, setConversationIdChangeBecauseOfNew, getConversationIdChangeBecauseOfNew] = useGetState(false) const [isChatStarted, { setTrue: setChatStarted, setFalse: setChatNotStarted }] = useBoolean(false) const handleStartChat = (inputs: Record) => { + createNewChat() + setConversationIdChangeBecauseOfNew(true) setCurrInputs(inputs) setChatStarted() // parse variables in introduction