diff --git a/src/components/Chat/Chat.tsx b/src/components/Chat/Chat.tsx index 3898051..73dc6fa 100644 --- a/src/components/Chat/Chat.tsx +++ b/src/components/Chat/Chat.tsx @@ -91,7 +91,8 @@ export default function Chat() { const [empathy, setEmpathy] = useState(null); const submit = async () => { - console.log("messages", messages); + console.log("\ud83d\ude03 messages", messages); + const prevMessage = messages[messages.length - 1]?.text; setMessages((prevMessages) => { return [...prevMessages, createMessage(userInput, true)];