diff --git a/frontend/app/(app)/user/components/badges.tsx b/frontend/app/(app)/user/components/badges.tsx index dd1e59a4..32393803 100644 --- a/frontend/app/(app)/user/components/badges.tsx +++ b/frontend/app/(app)/user/components/badges.tsx @@ -1,12 +1,11 @@ import { View, Text } from 'react-native'; import Badge from '../../../../assets/badge.svg'; -import { useUserBadges, useUserById } from '../../../../hooks/user'; +import { useUserById } from '../../../../hooks/user'; import BadgeSkeleton from './skeleton/badge-skeleton'; -import { useAuthStore } from '../../../../auth/authStore'; const Badges = ({ id }: { id: string }) => { const { data, isError, isLoading } = useUserById(id); - const badges = data?.badges; + const badges = data?.user.badges; if (isLoading) { return ; @@ -27,7 +26,7 @@ const Badges = ({ id }: { id: string }) => { return ( Badges - + {badges.map((badge: any, key: number) => (