Skip to content

Commit

Permalink
fix: fix #2710
Browse files Browse the repository at this point in the history
  • Loading branch information
lizheming committed Dec 8, 2024
1 parent de2e7a1 commit d3ed681
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/client/src/components/WalineComment.vue
Original file line number Diff line number Diff line change
Expand Up @@ -251,7 +251,7 @@ const onLike = async (comment: WalineComment): Promise<void> => {
likeStorage.value = likeStorage.value.slice(-50);
}
comment.like = (comment.like || 0) + (hasLiked ? -1 : 1);
comment.like = Math.max(0, (comment.like || 0) + (hasLiked ? -1 : 1));
};
provide('config', config);
Expand Down

0 comments on commit d3ed681

Please sign in to comment.