Skip to content

Commit

Permalink
fix the typescript for onclick event
Browse files Browse the repository at this point in the history
  • Loading branch information
staticGuru committed Oct 14, 2023
1 parent f840749 commit 88a464a
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion frontend/src/conversation/ConversationBubble.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,10 @@ const ConversationBubble = forwardRef<
}, 2000);
};

const handleSuggestionClick = (e: any, suggestionId: string) => {
const handleSuggestionClick = (
e: React.MouseEvent<HTMLDivElement, MouseEvent>,
suggestionId: string,
) => {
e.preventDefault();
console.log(suggestionId);
};
Expand Down

0 comments on commit 88a464a

Please sign in to comment.