Skip to content

Commit 81a211d

Browse files
committed
Use compact format for total txns in TPS chart
1 parent 53389d2 commit 81a211d

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

frontend/components/tps-tracker/tps-chart.tsx

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -60,10 +60,12 @@ function StatItem({
6060
</div>
6161
<AnimatedNumber
6262
value={value}
63-
className={cn(
64-
'text-2xl sm:text-3xl font-bold leading-none',
65-
colorClass,
66-
)}
63+
format={{
64+
notation: 'compact',
65+
minimumFractionDigits: 0,
66+
maximumFractionDigits: 2,
67+
}}
68+
className={cn('text-xl sm:text-2xl font-bold leading-none', colorClass)}
6769
/>
6870
</div>
6971
)

0 commit comments

Comments
 (0)