setupTippy();
}
- // TODO wut?
- // componentDidUpdate(lastProps: UserDetailsProps) {
- // for (const key of Object.keys(lastProps)) {
- // if (lastProps[key] !== this.props[key]) {
- // this.fetchUserData();
- // break;
- // }
- // }
- // }
-
render() {
return (
<div>
const avatar = this.props.person.avatar;
return (
<>
- {avatar &&
- !this.props.hideAvatar &&
+ {!this.props.hideAvatar &&
!this.props.person.banned &&
- showAvatars() && <PictrsImage src={avatar} icon />}
+ showAvatars() && (
+ <PictrsImage
+ src={avatar ?? "/static/assets/icons/icon-96x96.png"}
+ icon
+ />
+ )}
<span>{displayName}</span>
</>
);