From 35cc9c1ed3d5899fc28c4eae3271a789aa56106a Mon Sep 17 00:00:00 2001 From: David Totraev Date: Thu, 3 Oct 2024 15:04:43 +0500 Subject: [PATCH] fix: small review issues --- src/app/components/Stats/Stats.tsx | 2 +- src/app/hooks/useApi.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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; }