diff --git a/frontend/app/notification/ratingbubble.tsx b/frontend/app/notification/ratingbubble.tsx index 1f8dbdda0..9830bab58 100644 --- a/frontend/app/notification/ratingbubble.tsx +++ b/frontend/app/notification/ratingbubble.tsx @@ -17,8 +17,9 @@ const RatingBubble = ({ notification, onRemove }: RatingBubbleProps) => { const { id, title, message } = notification; const [hoveredButtons, setHoveredButtons] = useState<{ [key: number]: boolean }>({}); - const handleRatingClick = (rating: number) => { + const handleRatingClick = (id, rating: number) => { console.log("rating clicked"); + onRemove(id); }; const handleMouseEnter = (buttonIndex: number) => { @@ -49,7 +50,7 @@ const RatingBubble = ({ notification, onRemove }: RatingBubbleProps) => {