fix: Remove unused hasBadges() function

This commit is contained in:
Jay Sitter 2023-07-02 19:00:06 -04:00
parent 50b1a395f1
commit 61867ee73d

View file

@ -197,17 +197,6 @@ export class CommentNode extends Component<CommentNodeProps, CommentNodeState> {
return this.commentView.comment.id; 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( componentWillReceiveProps(
nextProps: Readonly<{ children?: InfernoNode } & CommentNodeProps> nextProps: Readonly<{ children?: InfernoNode } & CommentNodeProps>
): void { ): void {