From 26210f44e5f7b9d803393e3a4b0544be6efa37ac Mon Sep 17 00:00:00 2001 From: yunchipang Date: Wed, 18 Sep 2024 21:37:49 -0700 Subject: [PATCH] fix: sort token transaction history in time order on client side --- src/pages/tokens/[tokenid].js | 162 ++++++++++++++++++---------------- 1 file changed, 85 insertions(+), 77 deletions(-) diff --git a/src/pages/tokens/[tokenid].js b/src/pages/tokens/[tokenid].js index 7e3c06e41..651639233 100644 --- a/src/pages/tokens/[tokenid].js +++ b/src/pages/tokens/[tokenid].js @@ -544,97 +544,105 @@ export default function Token(props) { - {transactions.transactions.map((transaction, index) => ( - - - - - - - - - - Transfer token between: - new Date(a.processed_at) - new Date(b.processed_at), + ) + .map((transaction, index) => ( + + - - - {transaction.source_wallet_logo_url ? ( - - ) : ( - - - - )} - - - {transaction.source_wallet_name} - - - - + + + + + + + + + Transfer token between: + - - - + + + {transaction.source_wallet_logo_url ? ( + + ) : ( + + + + )} + + + {transaction.source_wallet_name} + + + + - {transaction.destination_wallet_logo_url ? ( - - ) : ( - - - - )} - - - {transaction.destination_wallet_name} - - + - - - - - ))} + + + {transaction.destination_wallet_logo_url ? ( + + ) : ( + + + + )} + + + {transaction.destination_wallet_name} + + + + + + + + ))}