diff --git a/explorer/src/components/account/TokenHistoryCard.tsx b/explorer/src/components/account/TokenHistoryCard.tsx index bebeb10d00..824e3b6421 100644 --- a/explorer/src/components/account/TokenHistoryCard.tsx +++ b/explorer/src/components/account/TokenHistoryCard.tsx @@ -75,6 +75,7 @@ function TokenHistoryTable({ tokens }: { tokens: TokenInfoWithPubkey[] }) { return history?.status === FetchStatus.FetchFailed; }); + const sigSet = new Set(); const mintAndTxs = tokens .map((token) => ({ mint: token.info.mint, @@ -88,7 +89,12 @@ function TokenHistoryTable({ tokens }: { tokens: TokenInfoWithPubkey[] }) { mint, tx, })) - ); + ) + .filter(({ tx }) => { + if (sigSet.has(tx.signature)) return false; + sigSet.add(tx.signature); + return true; + }); if (mintAndTxs.length === 0) { if (fetching) { @@ -224,7 +230,9 @@ function TokenTransactionRow({ return ( - {tx.slot} + + {tx.slot.toLocaleString("en-US")} + @@ -261,7 +269,7 @@ function TokenTransactionRow({ return ( - {tx.slot} + {tx.slot.toLocaleString("en-US")} {statusText} diff --git a/explorer/src/components/account/TransactionHistoryCard.tsx b/explorer/src/components/account/TransactionHistoryCard.tsx index 0a584d45e6..49db873ca5 100644 --- a/explorer/src/components/account/TransactionHistoryCard.tsx +++ b/explorer/src/components/account/TransactionHistoryCard.tsx @@ -70,7 +70,7 @@ export function TransactionHistoryCard({ pubkey }: { pubkey: PublicKey }) { detailsList.push( - {slot} + {slot.toLocaleString("en-US")} diff --git a/explorer/src/pages/TransactionDetailsPage.tsx b/explorer/src/pages/TransactionDetailsPage.tsx index 1988a7291e..8079c13f13 100644 --- a/explorer/src/pages/TransactionDetailsPage.tsx +++ b/explorer/src/pages/TransactionDetailsPage.tsx @@ -45,7 +45,7 @@ export function TransactionDetailsPage({ signature: raw }: Props) {
Details
-

Transaction

+

Transaction

{signature === undefined ? (