From 118e8811c1dbfdd78cf800cd292ae2f70290dcba Mon Sep 17 00:00:00 2001 From: Anton Shalimov Date: Tue, 20 Aug 2024 15:44:07 +0300 Subject: [PATCH] fix: show table for not connected wallet --- .../components/rewardsListContent/RewardsListContent.tsx | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/features/rewards/components/rewardsListContent/RewardsListContent.tsx b/features/rewards/components/rewardsListContent/RewardsListContent.tsx index ff5d9de6e..a47f1a6a7 100644 --- a/features/rewards/components/rewardsListContent/RewardsListContent.tsx +++ b/features/rewards/components/rewardsListContent/RewardsListContent.tsx @@ -7,7 +7,6 @@ import { STRATEGY_LAZY } from 'consts/swr-strategies'; import { useRewardsHistory } from 'features/rewards/hooks'; import { ErrorBlockNoSteth } from 'features/rewards/components/errorBlocks/ErrorBlockNoSteth'; import { RewardsTable } from 'features/rewards/components/rewardsTable'; -import { useDappStatus } from 'shared/hooks/use-dapp-status'; import { RewardsListsEmpty } from './RewardsListsEmpty'; import { RewardsListErrorMessage } from './RewardsListErrorMessage'; @@ -18,7 +17,6 @@ import { } from './RewardsListContentStyles'; export const RewardsListContent: FC = () => { - const { isDappActive } = useDappStatus(); const { error, initialLoading, @@ -32,8 +30,7 @@ export const RewardsListContent: FC = () => { useSTETHBalance(STRATEGY_LAZY); const hasSteth = stethBalance?.gt(Zero); - if (!isDappActive || (!data && !initialLoading && !error)) - return ; + if (!data && !initialLoading && !error) return ; // showing loading when canceling requests and empty response if ( (!data && !error) ||