chore: update rest of the codebase to use new getDisplayName() function
All checks were successful
ci/woodpecker/push/build-and-publish Pipeline was successful
All checks were successful
ci/woodpecker/push/build-and-publish Pipeline was successful
This commit is contained in:
parent
ace66980bf
commit
ab87fb681c
9 changed files with 10 additions and 14 deletions
|
@ -24,9 +24,7 @@ let displayAvatar: string | null
|
|||
const user = props.user || props.member?.user
|
||||
|
||||
if (user) {
|
||||
displayName = props.member?.nickname
|
||||
|| user.display_name
|
||||
|| user.username
|
||||
displayName = getDisplayName(user, props.member)
|
||||
|
||||
if (user.avatar) {
|
||||
displayAvatar = user.avatar
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue