Skip to content

Commit

Permalink
Fix query key for fetching status
Browse files Browse the repository at this point in the history
  • Loading branch information
Yoginth committed Sep 24, 2024
1 parent 41cfee3 commit 5feeb05
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion apps/web/src/components/Profile/ProfileStatus.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ const ProfileStatus: FC<ProfileStatusProps> = ({ id }) => {
const { data } = useQuery({
enabled: Boolean(id),
queryFn: () => getProfileDetails(id),
queryKey: ["getCurrentProfileStatus", id]
queryKey: ["getProfileStatus", id]
});

if (!data?.status) {
Expand Down

0 comments on commit 5feeb05

Please sign in to comment.