We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent cbdb5ba commit 0d0ad6bCopy full SHA for 0d0ad6b
web/components/LikeButton.tsx
@@ -53,7 +53,7 @@ export function LikeButton({ summaryId, disabled = false }: LikeButtonProps) {
53
}, [summaryId, userId]);
54
55
const handleLikeClick = async () => {
56
- if (!userId) return; // Prevent liking if not logged in
+ if (!userId || !summaryId) return; // Prevent liking if not logged in
57
58
if (liked) {
59
await supabase
0 commit comments