Skip to content

Commit

Permalink
Merge pull request #8 from czue/console
Browse files Browse the repository at this point in the history
clean up console logging
  • Loading branch information
czue authored Dec 4, 2024
2 parents 7bb8391 + fc385ea commit d9382d2
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 3 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "bluesky-comments",
"version": "0.5.0",
"version": "0.5.1",
"description": "Embed Bluesky comments on your website",
"main": "./dist/bluesky-comments.umd.js",
"module": "./dist/bluesky-comments.es.js",
Expand Down
2 changes: 0 additions & 2 deletions src/CommentSection.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -154,7 +154,6 @@ export const CommentSection = ({ uri: propUri, author, onEmpty, commentFilters }
<hr className={styles.divider} />
<div className={styles.commentsList}>
{sortedReplies.slice(0, visibleCount).map((reply) => {
console.log(reply);
if (!AppBskyFeedDefs.isThreadViewPost(reply)) return null;
return <Comment key={reply.post.uri} comment={reply} filters={commentFilters} />;
})}
Expand All @@ -177,7 +176,6 @@ const Comment = ({ comment, filters }: { comment: AppBskyFeedDefs.ThreadViewPost
// filter out replies that match any of the commentFilters, by ensuring they all return false
if (filters && !filters.every((filter) => !filter(comment))) return null;

console.log('rendering', comment);
return (
<div className={styles.commentContainer}>
<div className={styles.commentContent}>
Expand Down

0 comments on commit d9382d2

Please sign in to comment.