mirror of
https://github.com/CompassConnections/Compass.git
synced 2025-12-23 22:18:43 -05:00
Fix avatar link
This commit is contained in:
@@ -4,7 +4,7 @@ import { Row } from './layout/row'
|
||||
import clsx from 'clsx'
|
||||
|
||||
export const MultipleOrSingleAvatars = (props: {
|
||||
avatars: Array<{ avatarUrl: string; id: string; name: string }>
|
||||
avatars: Array<{ avatarUrl: string; id: string; name: string; username: string }>
|
||||
onClick?: () => void
|
||||
size: AvatarSizeType
|
||||
// TODO: standardize these numbers so they are calculated from the size
|
||||
@@ -17,7 +17,7 @@ export const MultipleOrSingleAvatars = (props: {
|
||||
if (avatars.length === 0) return null
|
||||
|
||||
if (avatars.length === 1) {
|
||||
return <Avatar size={size} avatarUrl={avatars[0].avatarUrl} username={avatars[0].name} />
|
||||
return <Avatar size={size} avatarUrl={avatars[0].avatarUrl} username={avatars[0].username} />
|
||||
}
|
||||
|
||||
const totalAvatars = avatars.length
|
||||
|
||||
Reference in New Issue
Block a user