diff --git a/frontend/src/components/stories/StoryCard.tsx b/frontend/src/components/stories/StoryCard.tsx index c6c993a..a1b1830 100644 --- a/frontend/src/components/stories/StoryCard.tsx +++ b/frontend/src/components/stories/StoryCard.tsx @@ -29,6 +29,8 @@ export default function StoryCard({ const [updating, setUpdating] = useState(false); const handleRatingClick = async (e: React.MouseEvent, newRating: number) => { + console.log('Rating click:', newRating, 'for story:', story.title); + // Prevent default and stop propagation to avoid triggering navigation e.preventDefault(); e.stopPropagation(); @@ -56,7 +58,10 @@ export default function StoryCard({ if (viewMode === 'list') { return ( -