Skip to content

Commit

Permalink
fix: swtich to block-subgraph
Browse files Browse the repository at this point in the history
  • Loading branch information
viet-nv committed Aug 2, 2023
1 parent 187233a commit 194be87
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
5 changes: 3 additions & 2 deletions src/components/TxnList/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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)')
Expand Down
2 changes: 1 addition & 1 deletion src/constants/networks.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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,
},
}

Expand Down

0 comments on commit 194be87

Please sign in to comment.