diff --git a/packages/page-staking-async/src/Validators/Address/index.tsx b/packages/page-staking-async/src/Validators/Address/index.tsx index a32c3c3b33..a181b2b42d 100644 --- a/packages/page-staking-async/src/Validators/Address/index.tsx +++ b/packages/page-staking-async/src/Validators/Address/index.tsx @@ -19,7 +19,6 @@ import { BN_ZERO } from '@polkadot/util'; import { useTranslation } from '../../translate.js'; import NominatedBy from './NominatedBy.js'; -import StakeOther from './StakeOther.js'; import Status from './Status.js'; interface Props { @@ -96,7 +95,7 @@ function Address ({ address, className = '', filterName, hasQueries, isElected, const [isExpanded, toggleIsExpanded] = useToggle(false); const { accountInfo, slashingSpans } = useAddressCalls(api, address, isMain); - const { commission, isChilled, nominators, stakeOther, stakeOwn } = useMemo( + const { commission, isChilled, nominators, stakeOwn, stakeTotal } = useMemo( () => validatorInfo ? expandInfo(validatorInfo, minCommission) : {}, @@ -154,10 +153,17 @@ function Address ({ address, className = '', filterName, hasQueries, isElected, {isMain ? ( - + <> + + {stakeTotal ? : 0} + + + {stakeOwn ? : 0} + + + {nominators?.length || 0} + + ) : ( - - {isMain && stakeOwn?.gtn(0) && ( - <> -
{t('own stake')}
- - - )} -
{hasQueries && ( <> diff --git a/packages/page-staking-async/src/Validators/CurrentList.tsx b/packages/page-staking-async/src/Validators/CurrentList.tsx index 72ee28bd8f..cc15075723 100644 --- a/packages/page-staking-async/src/Validators/CurrentList.tsx +++ b/packages/page-staking-async/src/Validators/CurrentList.tsx @@ -144,7 +144,9 @@ function CurrentList ({ className, favorites, hasQueries, isIntentions, isOwn, m ] : [ [t('validators'), 'start', 3], - [t('other stake'), 'expand'], + [t('total stake'), 'number'], + [t('own stake'), 'number'], + [t('nominator count'), 'number'], [t('commission')], [t('last #')], []