Fixing hover card for labeler accounts (#5414)

* Fixing hover card for labeler account

* removing memo
This commit is contained in:
Wesley
2024-09-20 16:49:23 -03:00
committed by GitHub
parent 79a2f8d528
commit 5be5f96faa
@@ -411,6 +411,7 @@ function Inner({
() => currentAccount?.did === profile.did, () => currentAccount?.did === profile.did,
[currentAccount, profile], [currentAccount, profile],
) )
const isLabeler = profile.associated?.labeler
return ( return (
<View> <View>
@@ -419,11 +420,13 @@ function Inner({
<UserAvatar <UserAvatar
size={64} size={64}
avatar={profile.avatar} avatar={profile.avatar}
type={isLabeler ? 'labeler' : 'user'}
moderation={moderation.ui('avatar')} moderation={moderation.ui('avatar')}
/> />
</Link> </Link>
{!isMe && {!isMe &&
!isLabeler &&
(isBlockedUser ? ( (isBlockedUser ? (
<Link <Link
to={profileURL} to={profileURL}