Commit 57b176d4 authored by Igor Stuev's avatar Igor Stuev Committed by GitHub

nft pagination fix (#1246)

parent f6804087
......@@ -196,7 +196,8 @@ const TokenPageContent = () => {
let pagination: PaginationParams | undefined;
if (!tab || tab === 'token_transfers') {
// default tab for erc-20 is token transfers
if ((tokenQuery.data?.type === 'ERC-20' && !tab) || tab === 'token_transfers') {
pagination = transfersQuery.pagination;
}
......@@ -204,7 +205,8 @@ const TokenPageContent = () => {
pagination = holdersQuery.pagination;
}
if (tab === 'inventory') {
// default tab for nfts is token inventory
if (((tokenQuery.data?.type === 'ERC-1155' || tokenQuery.data?.type === 'ERC-721') && !tab) || tab === 'inventory') {
pagination = inventoryQuery.pagination;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment