diff --git a/src/app/components/Stats/Stats.tsx b/src/app/components/Stats/Stats.tsx index 3ad6bd88..22bffee3 100644 --- a/src/app/components/Stats/Stats.tsx +++ b/src/app/components/Stats/Stats.tsx @@ -91,7 +91,7 @@ export const Stats: React.FC = () => { setStakingStats(stakingStatsProvider.data); } setIsLoading( - stakingStatsProvider.isLoading || versionInfo?.isLoading || false, + stakingStatsProvider.isLoading || Boolean(versionInfo?.isLoading), ); }, [stakingStatsProvider, versionInfo?.isLoading]); diff --git a/src/app/hooks/useApi.ts b/src/app/hooks/useApi.ts index 6bb468cc..defba57f 100644 --- a/src/app/hooks/useApi.ts +++ b/src/app/hooks/useApi.ts @@ -35,7 +35,7 @@ export function useAPIQuery< errorState: ErrorState.SERVER_ERROR, refetchFunction: data.refetch, }); - }, [handleError, data?.error, data?.isError, data.refetch]); + }, [handleError, data.error, data.isError, data.refetch]); return data; }