Commit 5b4bdff9 authored by tom's avatar tom

fix counters for internal txs on address page

parent 70d9673b
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,
......
......@@ -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 ? {
......
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