fix(users): unwrap nested team data from API response

API returns {team: {...}} wrapped objects, need to access item.team

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
Maulana Sodiqin
2025-11-30 00:33:26 +07:00
co-authored by Claude
parent ec9a81d7b5
commit fe4e9291fa
@@ -131,7 +131,9 @@ const UserProfilePage: FC = (): ReactElement => {
Team Team
</h2> </h2>
<div className="space-y-4"> <div className="space-y-4">
{userTeams.map((team: any) => ( {userTeams.map((item: any) => {
const team = item.team || item;
return (
<Link <Link
key={team.id} key={team.id}
to={'/teams/' + team.id} to={'/teams/' + team.id}
@@ -186,7 +188,8 @@ const UserProfilePage: FC = (): ReactElement => {
)} )}
</div> </div>
</Link> </Link>
))} );
})}
</div> </div>
</div> </div>
) : ( ) : (