mirror of
https://github.com/LemmyNet/lemmy-ui.git
synced 2024-12-23 11:21:26 +00:00
fix: Remove unused hasBadges() function
This commit is contained in:
parent
50b1a395f1
commit
61867ee73d
1 changed files with 0 additions and 11 deletions
|
@ -197,17 +197,6 @@ export class CommentNode extends Component<CommentNodeProps, CommentNodeState> {
|
|||
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 {
|
||||
|
|
Loading…
Reference in a new issue