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;
|
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 {
|
||||||
|
|
Loading…
Reference in a new issue