LP-5675: fixed the ability to grant an achievement to a user of a shared channel

This commit is contained in:
Дмитрий Пиченикин 2026-03-13 16:09:43 +03:00
parent 3e8879245b
commit 0942562085

View File

@ -95,6 +95,10 @@ const BadgeList: React.FC<Props> = ({user, hide}) => {
hide(); hide();
}, [dispatch, user.username, hide]); }, [dispatch, user.username, hide]);
if ((user as UserProfile & {remote_id?: string}).remote_id) {
return null;
}
const visibleGroups = groups.slice(0, MAX_BADGES); const visibleGroups = groups.slice(0, MAX_BADGES);
const maxWidth = (MAX_BADGES * BADGE_SIZE) + 30; const maxWidth = (MAX_BADGES * BADGE_SIZE) + 30;