fix badges in new profiles

This commit is contained in:
Vendicated 2024-06-08 05:26:03 +02:00
parent 810ff894dc
commit 65970618d8
No known key found for this signature in database
GPG key ID: D66986BAF75ECF18
3 changed files with 56 additions and 11 deletions

View file

@ -130,9 +130,9 @@ const PlatformIndicator = ({ user, wantMargin = true, wantTopMargin = false, sma
};
const badge: ProfileBadge = {
component: p => <PlatformIndicator {...p} wantMargin={false} />,
component: p => <PlatformIndicator {...p} user={UserStore.getUser(p.userId)} wantMargin={false} />,
position: BadgePosition.START,
shouldShow: userInfo => !!Object.keys(getStatus(userInfo.user.id) ?? {}).length,
shouldShow: userInfo => !!Object.keys(getStatus(userInfo.userId) ?? {}).length,
key: "indicator"
};