From 194be87a2200f87b7963ae7f8037009ac7b09b44 Mon Sep 17 00:00:00 2001 From: viet-nv Date: Wed, 2 Aug 2023 16:17:37 +0700 Subject: [PATCH] fix: swtich to block-subgraph --- src/components/TxnList/index.js | 5 +++-- src/constants/networks.ts | 2 +- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/src/components/TxnList/index.js b/src/components/TxnList/index.js index 120d7dbb1..aa1e520ef 100644 --- a/src/components/TxnList/index.js +++ b/src/components/TxnList/index.js @@ -299,8 +299,8 @@ function TxnList({ transactions, symbol0Override, symbol1Override, color }) { valueToCompareA = parseFloat(a[sortedColumn]) valueToCompareB = parseFloat(b[sortedColumn]) } - if (valueToCompareA > valueToCompareB) return (sortDirection ? -1 : 1) * 1 - if (valueToCompareA < valueToCompareB) return (sortDirection ? -1 : 1) * -1 + if (valueToCompareA > valueToCompareB) return (sortDirection ? -1 : 1) * -1 + if (valueToCompareA < valueToCompareB) return (sortDirection ? -1 : 1) * 1 if (a.timestamp < b.timestamp) return 1 if (a.timestamp > b.timestamp) return -1 @@ -317,6 +317,7 @@ function TxnList({ transactions, symbol0Override, symbol1Override, color }) { .slice(ITEMS_PER_PAGE * (page - 1), page * ITEMS_PER_PAGE), [filteredItems, page, sortDirection, sortedColumn] ) + console.log(filteredList) const below1080 = useMedia('(max-width: 1080px)') const below780 = useMedia('(max-width: 780px)') const below900 = useMedia('(max-width: 900px)') diff --git a/src/constants/networks.ts b/src/constants/networks.ts index c51ef1c51..828bb07de 100644 --- a/src/constants/networks.ts +++ b/src/constants/networks.ts @@ -377,7 +377,7 @@ export const NETWORKS_INFO: { [key in ChainId]: NETWORK_INFO } = { nativeTokenLogo: EthereumLogo, etherscanLinkText: 'LINEA Explorer', tokensListUrl: 'https://raw.githubusercontent.com/KyberNetwork/ks-assets/main/tokenLists/linea.tokenlist.json', - isEnableBlockService: true, + isEnableBlockService: false, }, }