diff --git a/src/Components/Users/UserProfile.tsx b/src/Components/Users/UserProfile.tsx index 7f18eba8a9f..063280b0c16 100644 --- a/src/Components/Users/UserProfile.tsx +++ b/src/Components/Users/UserProfile.tsx @@ -144,8 +144,7 @@ export default function UserProfile() { data: userData, loading: isUserLoading, refetch: refetchUserData, - } = useQuery(routes.getUserDetails, { - pathParams: { username: authUser.username }, + } = useQuery(routes.currentUser, { onResponse: (result) => { if (!result || !result.res || !result.data) return; const formData: EditForm = {