fix counters for internal txs on address page

This commit is contained in:
tom
2024-12-23 15:37:28 +01:00
committed by tom goriunov
parent 8175d70be2
commit 2e0caeceed
4 changed files with 4 additions and 4 deletions
+1 -1
View File
@@ -1,7 +1,7 @@
import type { AddressTabsCounters } from 'types/api/address';
export const base: AddressTabsCounters = {
internal_txs_count: 13,
internal_transactions_count: 13,
logs_count: 51,
token_balances_count: 3,
token_transfers_count: 3,
+1 -1
View File
@@ -48,7 +48,7 @@ export const ADDRESS_COUNTERS: AddressCounters = {
};
export const ADDRESS_TABS_COUNTERS: AddressTabsCounters = {
internal_txs_count: 10,
internal_transactions_count: 10,
logs_count: 10,
token_balances_count: 10,
token_transfers_count: 10,
+1 -1
View File
@@ -191,7 +191,7 @@ export type AddressWithdrawalsItem = {
};
export type AddressTabsCounters = {
internal_txs_count: number | null;
internal_transactions_count: number | null;
logs_count: number | null;
token_balances_count: number | null;
token_transfers_count: number | null;
+1 -1
View File
@@ -206,7 +206,7 @@ const AddressPageContent = () => {
{
id: 'internal_txns',
title: 'Internal txns',
count: addressTabsCountersQuery.data?.internal_txs_count,
count: addressTabsCountersQuery.data?.internal_transactions_count,
component: <AddressInternalTxs scrollRef={ tabsScrollRef } shouldRender={ !isTabsLoading } isQueryEnabled={ areQueriesEnabled }/>,
},
addressTabsCountersQuery.data?.celo_election_rewards_count ? {