mirror of
https://github.com/Sendouc/sendou.ink.git
synced 2026-10-01 07:37:55 -05:00
Fix widget user page not showing team member custom roles
This commit is contained in:
@@ -108,6 +108,7 @@ export function findAllMemberOfByUserId(userId: number) {
|
||||
"Team.name",
|
||||
"Team.mapModePreferences",
|
||||
"TeamMemberWithSecondary.role",
|
||||
"TeamMemberWithSecondary.customRole",
|
||||
"TeamMemberWithSecondary.isOwner",
|
||||
"TeamMemberWithSecondary.isManager",
|
||||
concatUserSubmittedImagePrefix(eb.ref("UserSubmittedImage.url")).as(
|
||||
|
||||
@@ -92,7 +92,9 @@ export function Widget({
|
||||
url: teamPage(team.customUrl),
|
||||
name: team.name,
|
||||
logoUrl: team.logoUrl,
|
||||
roleDisplayName: team.role ? t(`team:roles.${team.role}`) : null,
|
||||
roleDisplayName:
|
||||
team.customRole ??
|
||||
(team.role ? t(`team:roles.${team.role}`) : null),
|
||||
}))}
|
||||
/>
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user