We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8a252c6 commit 54b420cCopy full SHA for 54b420c
src/features/StartupProgress/Firedancer/Snapshot/SnapshotBarsCard.tsx
@@ -87,9 +87,11 @@ export function AccountsRate({ cumulativeAccounts }: AccountsRateProps) {
87
}, [phase, reset]);
88
89
const value = useMemo(() => {
90
+ // Possible to have no rate due to only having a single point
91
+ if (cumulativeAccounts != null && accountsPerSecond == null) return "0";
92
if (accountsPerSecond == null) return;
93
return compactSingleDecimalFormatter.format(accountsPerSecond);
- }, [accountsPerSecond]);
94
+ }, [accountsPerSecond, cumulativeAccounts]);
95
96
return (
97
<div className={styles.accountsRate}>
0 commit comments