From 279dd6667118b04dfbffe8e7412fb1f7b2a40f6c Mon Sep 17 00:00:00 2001 From: isstuev Date: Thu, 27 Feb 2025 17:11:17 +0100 Subject: [PATCH] fix tx stats titles --- ui/txs/TxsStats.tsx | 25 ++++++++++++++++++++----- 1 file changed, 20 insertions(+), 5 deletions(-) diff --git a/ui/txs/TxsStats.tsx b/ui/txs/TxsStats.tsx index 176cf37459..910100ed12 100644 --- a/ui/txs/TxsStats.tsx +++ b/ui/txs/TxsStats.tsx @@ -76,7 +76,9 @@ const TxsStats = () => { > { txCount24h && ( { ) } { operationalTxns24h && ( { ) } { pendingTxns && ( { ) } { txFeeSum24h && ( { ) } { txFeeAvg && ( { ); }; +// remove period from title +function getLabelFromTitle(title: string) { + return title.replace(/\s*\([^)]*\)\s*$/, ''); +} + export default React.memo(TxsStats);