Skip to content

Commit

Permalink
fix: small review issues
Browse files Browse the repository at this point in the history
  • Loading branch information
totraev committed Oct 4, 2024
1 parent 9b66534 commit 35cc9c1
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/app/components/Stats/Stats.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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]);

Expand Down
2 changes: 1 addition & 1 deletion src/app/hooks/useApi.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}

0 comments on commit 35cc9c1

Please sign in to comment.