Skip to content

Commit 07ae1d2

Browse files
authored
feat: always allow click (#86)
This is the second part of what was supposed to be a small fix. The click handler was prevented from firing even though the button was not disabled anymore. this is wrong.
1 parent bc2cd7f commit 07ae1d2

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

src/components/comment-button/comment-button.tsx

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -28,9 +28,7 @@ export const CommentButton: React.FC<CommentButtonProps> = ({ count, hasCommente
2828
const label = getCommentText(count, labels);
2929

3030
const handleCommentClick = () => {
31-
if (!hasCommented) {
32-
onClick();
33-
}
31+
onClick();
3432
};
3533

3634
return (

0 commit comments

Comments
 (0)