From 5b4bdff9cf259b2476fc144ebf462da6b7a66ebb Mon Sep 17 00:00:00 2001 From: tom Date: Wed, 18 Dec 2024 08:24:12 +0100 Subject: [PATCH] fix counters for internal txs on address page --- mocks/address/tabCounters.ts | 2 +- stubs/address.ts | 2 +- types/api/address.ts | 2 +- ui/pages/Address.tsx | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/mocks/address/tabCounters.ts b/mocks/address/tabCounters.ts index 3853ffab4d..85c3cd1e9a 100644 --- a/mocks/address/tabCounters.ts +++ b/mocks/address/tabCounters.ts @@ -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, diff --git a/stubs/address.ts b/stubs/address.ts index acd1c1d03e..17140ff986 100644 --- a/stubs/address.ts +++ b/stubs/address.ts @@ -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, diff --git a/types/api/address.ts b/types/api/address.ts index 6b6e1a2818..765561a3fa 100644 --- a/types/api/address.ts +++ b/types/api/address.ts @@ -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; diff --git a/ui/pages/Address.tsx b/ui/pages/Address.tsx index 0fa028ae2f..0b1d80c05e 100644 --- a/ui/pages/Address.tsx +++ b/ui/pages/Address.tsx @@ -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: , }, addressTabsCountersQuery.data?.celo_election_rewards_count ? {