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) {