mirror of
https://github.com/revoltchat/revite.git
synced 2024-11-05 23:25:44 -05:00
fix: use display name where available for friends
This commit is contained in:
parent
c5ca579c95
commit
cf691a8462
1 changed files with 1 additions and 1 deletions
|
@ -136,7 +136,7 @@ export const Friend = observer(({ user }: Props) => {
|
|||
})}>
|
||||
<UserIcon target={user} size={36} status />
|
||||
<div className={styles.name}>
|
||||
<span>{user.username}</span>
|
||||
<span>{user.display_name ?? user.username}</span>
|
||||
{subtext && <span className={styles.subtext}>{subtext}</span>}
|
||||
</div>
|
||||
<div className={styles.actions}>{actions}</div>
|
||||
|
|
Loading…
Reference in a new issue