From 3d9dec503e9d68bc880d6d0ad14e56fd927e938a Mon Sep 17 00:00:00 2001 From: Spencer Lochne Date: Tue, 10 Jun 2025 12:57:35 -0400 Subject: [PATCH] 11l Solution --- .../chatbot-project/src/components/ChatInput.tsx | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/2-copy-of-code/lesson-11/chatbot-project/src/components/ChatInput.tsx b/2-copy-of-code/lesson-11/chatbot-project/src/components/ChatInput.tsx index cc2e0d7..600f17c 100644 --- a/2-copy-of-code/lesson-11/chatbot-project/src/components/ChatInput.tsx +++ b/2-copy-of-code/lesson-11/chatbot-project/src/components/ChatInput.tsx @@ -16,7 +16,11 @@ type ChatInputProps = { export function ChatInput({ chatMessages, setChatMessages }: ChatInputProps) { const [inputText, setInputText] = useState(''); - function saveInputText(event) { + function saveInputText(event: { + target: { + value: string; + }; + }) { setInputText(event.target.value); } @@ -49,7 +53,7 @@ export function ChatInput({ chatMessages, setChatMessages }: ChatInputProps) {