Skip to content

Commit

Permalink
Fix profile page not able to retrieve details for superusers (#7652)
Browse files Browse the repository at this point in the history
  • Loading branch information
rithviknishad authored Apr 24, 2024
1 parent 66e5ff4 commit bc244e8
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/Components/Users/UserProfile.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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 = {
Expand Down

0 comments on commit bc244e8

Please sign in to comment.