diff --git a/app/features/team/TeamRepository.server.ts b/app/features/team/TeamRepository.server.ts index 01b4451ad..933998c15 100644 --- a/app/features/team/TeamRepository.server.ts +++ b/app/features/team/TeamRepository.server.ts @@ -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( diff --git a/app/features/user-page/components/Widget.tsx b/app/features/user-page/components/Widget.tsx index 005fe2afc..f1052c8ea 100644 --- a/app/features/user-page/components/Widget.tsx +++ b/app/features/user-page/components/Widget.tsx @@ -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), }))} /> );