From 3ea1a0878646f05b21c1326fef7d9da81051e006 Mon Sep 17 00:00:00 2001 From: KaleemNeslit Date: Fri, 8 Nov 2024 02:23:01 +0500 Subject: [PATCH] fixed the loading issue --- .../client/scripts/views/components/user/fullUser.tsx | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/packages/commonwealth/client/scripts/views/components/user/fullUser.tsx b/packages/commonwealth/client/scripts/views/components/user/fullUser.tsx index b2cb4681f60..b3136c467a2 100644 --- a/packages/commonwealth/client/scripts/views/components/user/fullUser.tsx +++ b/packages/commonwealth/client/scripts/views/components/user/fullUser.tsx @@ -44,13 +44,12 @@ export const FullUser = ({ const loggedInUser = useUserStore(); const [isModalOpen, setIsModalOpen] = useState(false); - const { data: userCommunity, isLoading: isLoadingUserCommunity } = - useGetCommunityByIdQuery({ - id: userCommunityId || '', - enabled: !!userCommunityId, - }); + const { data: userCommunity } = useGetCommunityByIdQuery({ + id: userCommunityId || '', + enabled: !!userCommunityId, + }); - if (showSkeleton || isLoadingUserCommunity) { + if (showSkeleton) { return (