diff --git a/features/profile/hooks/use-profile-data.tsx b/features/profile/hooks/use-profile-data.tsx index cf1d67d2..a262da94 100644 --- a/features/profile/hooks/use-profile-data.tsx +++ b/features/profile/hooks/use-profile-data.tsx @@ -6,9 +6,9 @@ import { fetchProfileData } from '../apis/fetch-profile-data'; export const useProfileData = (id?: number) => { return useQuery({ - queryKey: ['profileData', id], + queryKey: ['profileData', String(id)], queryFn: () => - fetchProfileData(id as number).then((data) => { + fetchProfileData(Number(id)).then((data) => { return data.data; }), enabled: !!id,