diff --git a/apps/hackathon/src/app/users/[userId]/page.tsx b/apps/hackathon/src/app/users/[userId]/page.tsx index 04479e1..f8acb66 100644 --- a/apps/hackathon/src/app/users/[userId]/page.tsx +++ b/apps/hackathon/src/app/users/[userId]/page.tsx @@ -131,62 +131,65 @@ const UserProfilePage: FC = (): ReactElement => { Team
- {userTeams.map((team: any) => ( - - {team.name} -
-
- {team.logo ? ( - {team.name} - ) : ( -
- -
- )} -
-

- {team.name} -

-
- {team.has_submission && ( - - - Submitted + {userTeams.map((item: any) => { + const team = item.team || item; + return ( + + {team.name} +
+
+ {team.logo ? ( + {team.name} + ) : ( +
+ +
+ )} +
+

+ {team.name} +

+
+ {team.has_submission && ( + + + Submitted + + )} + {team.city && ( + + + {team.city} + + )} + + + {team.member_count || team.members?.length || 0} member{(team.member_count || team.members?.length || 0) !== 1 ? 's' : ''} - )} - {team.city && ( - - - {team.city} - - )} - - - {team.member_count || team.members?.length || 0} member{(team.member_count || team.members?.length || 0) !== 1 ? 's' : ''} - +
+ {team.description && ( +

+ {team.description} +

+ )}
- {team.description && ( -

- {team.description} -

- )} -
- - ))} + + ); + })}
) : (