Skip to content

Commit

Permalink
Update Copilot.tsx issue pieces-app#112
Browse files Browse the repository at this point in the history
  • Loading branch information
Anubhavbaranwal authored Jun 4, 2024
1 parent 6ceef2e commit 3b103e1
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/app/components/Copilot/Copilot.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -115,9 +115,9 @@ export function CopilotChat(): React.JSX.Element {
const [message, setMessage] = useState<string>('');

// handles the data changes on the chat input.
const handleCopilotChatInputChange = (event: { target: { value: React.SetStateAction<string>; }; }) => {
setData(event.target.value);
};
const handleCopilotChatInputChange = ({ target: { value } }: React.ChangeEvent<HTMLTextAreaElement>) => {
setData(value);
};

// handles the ask button click.
const handleCopilotAskbuttonClick = async (chatInputData, setMessage)=>{
Expand Down Expand Up @@ -186,4 +186,4 @@ export function CopilotChat(): React.JSX.Element {
</div>
</div>
);
}
}

0 comments on commit 3b103e1

Please sign in to comment.