diff --git a/src/app/components/Copilot/Copilot.tsx b/src/app/components/Copilot/Copilot.tsx index 1b978b9..37547d1 100644 --- a/src/app/components/Copilot/Copilot.tsx +++ b/src/app/components/Copilot/Copilot.tsx @@ -50,8 +50,8 @@ export function CopilotChat(): React.JSX.Element { // handles the data changes on the chat input. - const handleCopilotChatInputChange = (event: { target: { value: React.SetStateAction; }; }) => { - setData(event.target.value); + const handleCopilotChatInputChange = ({ target: { value } }: React.ChangeEvent) => { + setData(value); }; // handles the ask button click.