Skip to content

Commit

Permalink
Small change.
Browse files Browse the repository at this point in the history
GitOrigin-RevId: 85ce778be3735cce3b6c2883c3efc775a9cd434d
  • Loading branch information
cpojer committed Oct 28, 2024
1 parent ca1900a commit 26a8b1b
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion hera/character/MiniPortrait.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -15,11 +15,13 @@ import Portrait from './Portrait.tsx';

export default function MiniPortrait({
animate,
human,
paused,
player,
user,
}: {
animate?: boolean;
human?: true;
paused?: boolean;
player: Player | PlayerID;
user: Omit<UserLike, 'username'> & { username: string | null };
Expand All @@ -32,7 +34,7 @@ export default function MiniPortrait({

const isPlayerID = typeof player === 'number';
const id = isPlayerID ? player : player.id;
const isHuman = !isPlayerID && isHumanPlayer(player);
const isHuman = human || (!isPlayerID && isHumanPlayer(player));
const username = isHuman && user.username?.length ? user.username : null;
const Component = username ? Link : 'div';
return (
Expand Down

0 comments on commit 26a8b1b

Please sign in to comment.