From bc244e86a2667f88942522fdb1920a8548143472 Mon Sep 17 00:00:00 2001 From: Rithvik Nishad Date: Wed, 24 Apr 2024 17:00:01 +0530 Subject: [PATCH] Fix profile page not able to retrieve details for superusers (#7652) --- src/Components/Users/UserProfile.tsx | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) 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 = {