From 44cd9d9c8821053f24959f555c2e3edf690e7f6b Mon Sep 17 00:00:00 2001 From: Noah Gundotra Date: Mon, 11 Nov 2024 09:15:25 -0500 Subject: [PATCH] Revert "nit: add warning of ping api issues" (#405) Reverts solana-labs/explorer#401 --- app/components/LiveTransactionStatsCard.tsx | 18 +----------------- app/page.tsx | 5 +---- 2 files changed, 2 insertions(+), 21 deletions(-) diff --git a/app/components/LiveTransactionStatsCard.tsx b/app/components/LiveTransactionStatsCard.tsx index db3ed4f8..07aa9ed4 100644 --- a/app/components/LiveTransactionStatsCard.tsx +++ b/app/components/LiveTransactionStatsCard.tsx @@ -39,19 +39,7 @@ export function LiveTransactionStatsCard() {

Live Transaction Stats

- -
- Note: We are aware of an issue with ping statistic reporting. Ping statistics may not reflect actual - network performance. Please see{' '} - - validators.app - {' '} - for more information. -
); @@ -285,11 +273,7 @@ function PingStatsCardBody({ series, setSeries }: { series: Series; setSeries: S return ; } - return ( - <> - - - ); + return ; } type StatsNotReadyProps = { error: boolean; retry?: () => void }; diff --git a/app/page.tsx b/app/page.tsx index 60023177..4a74b565 100644 --- a/app/page.tsx +++ b/app/page.tsx @@ -71,10 +71,7 @@ function StakingComponent() { const activeStake = React.useMemo(() => { if (voteAccounts && delinquentStake) { - return ( - voteAccounts.current.reduce((prev, current) => prev + current.activatedStake, BigInt(0)) + - delinquentStake - ); + return voteAccounts.current.reduce((prev, current) => prev + current.activatedStake, BigInt(0)) + delinquentStake; } }, [voteAccounts, delinquentStake]);