mirror of
https://github.com/luxfi/explore.git
synced 2026-09-24 00:28:18 +00:00
fix counters for internal txs on address page
This commit is contained in:
@@ -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
@@ -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,
|
||||
|
||||
@@ -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;
|
||||
|
||||
@@ -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 ? {
|
||||
|
||||
Reference in New Issue
Block a user