From: Jay Sitter Date: Sun, 2 Jul 2023 23:00:06 +0000 (-0400) Subject: fix: Remove unused hasBadges() function X-Git-Url: http://these/git/%7BpictshareAvatarThumbnail%28admin.avatar%29%7D?a=commitdiff_plain;h=61867ee73d7ba9ac6865bd6fcd1ba11f51a5f060;p=lemmy-ui.git fix: Remove unused hasBadges() function --- diff --git a/src/shared/components/comment/comment-node.tsx b/src/shared/components/comment/comment-node.tsx index c6b37fd..662b67b 100644 --- a/src/shared/components/comment/comment-node.tsx +++ b/src/shared/components/comment/comment-node.tsx @@ -197,17 +197,6 @@ export class CommentNode extends Component { return this.commentView.comment.id; } - get hasBadges(): boolean { - const cv = this.commentView; - - return ( - this.isPostCreator || - isMod(cv.creator.id, this.props.moderators) || - isAdmin(cv.creator.id, this.props.admins) || - cv.creator.bot_account - ); - } - componentWillReceiveProps( nextProps: Readonly<{ children?: InfernoNode } & CommentNodeProps> ): void {