Skip to content

Commit

Permalink
fix: hasLiked checks
Browse files Browse the repository at this point in the history
  • Loading branch information
hyochan committed Dec 16, 2024
1 parent 0b02b8c commit 4f884a9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/components/uis/ReplyItem.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ export default function ReplyItem({
};

const hasLiked = !!item.likes?.some(
(like) => like.user_id === userId && like.liked,
(like) => like.user_id === authId && like.liked,
);

const likeCnt = item.likes?.length || 0;
Expand Down

0 comments on commit 4f884a9

Please sign in to comment.