From 5feeb05b6f8093773d0313760a1c09f8389a8d0b Mon Sep 17 00:00:00 2001 From: Yoginth Date: Tue, 24 Sep 2024 14:44:32 +0530 Subject: [PATCH] Fix query key for fetching status --- apps/web/src/components/Profile/ProfileStatus.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/web/src/components/Profile/ProfileStatus.tsx b/apps/web/src/components/Profile/ProfileStatus.tsx index 6a2b262278a..9bd147295d0 100644 --- a/apps/web/src/components/Profile/ProfileStatus.tsx +++ b/apps/web/src/components/Profile/ProfileStatus.tsx @@ -11,7 +11,7 @@ const ProfileStatus: FC = ({ id }) => { const { data } = useQuery({ enabled: Boolean(id), queryFn: () => getProfileDetails(id), - queryKey: ["getCurrentProfileStatus", id] + queryKey: ["getProfileStatus", id] }); if (!data?.status) {