Skip to content

Commit

Permalink
fix counters for internal txs on address page
Browse files Browse the repository at this point in the history
  • Loading branch information
tom2drum committed Dec 18, 2024
1 parent 70d9673 commit 5b4bdff
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion mocks/address/tabCounters.ts
Original file line number Diff line number Diff line change
@@ -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,
Expand Down
2 changes: 1 addition & 1 deletion stubs/address.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down
2 changes: 1 addition & 1 deletion types/api/address.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
2 changes: 1 addition & 1 deletion ui/pages/Address.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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 ? {
Expand Down

0 comments on commit 5b4bdff

Please sign in to comment.