diff --git a/src/components/Nodes/AuctionListTable/AuctionListTable.tsx b/src/components/Nodes/AuctionListTable/AuctionListTable.tsx index 8e876a727..7d61deda7 100644 --- a/src/components/Nodes/AuctionListTable/AuctionListTable.tsx +++ b/src/components/Nodes/AuctionListTable/AuctionListTable.tsx @@ -48,14 +48,6 @@ const getValidatorDetails = ({ return `+${multipleIdentityEntries} more`; } - const multipleOwnerEntries = validators.filter( - (filteredValidator) => - validator.owner && validator.owner === filteredValidator.owner - ).length; - if (multipleOwnerEntries > 1) { - return `+${multipleIdentityEntries} more entries`; - } - return ''; }; diff --git a/src/hooks/adapter/helpers.ts b/src/hooks/adapter/helpers.ts index d5e665e2e..9860bfb9a 100644 --- a/src/hooks/adapter/helpers.ts +++ b/src/hooks/adapter/helpers.ts @@ -124,6 +124,7 @@ export function getNodeParams({ isAuctioned, isAuctionDangerZone, owner, + withIdentityInfo, // not on api isCount = false }: GetNodesType) { @@ -137,7 +138,8 @@ export function getNodeParams({ ...(from !== undefined ? { from } : {}), ...(size !== undefined ? { size } : {}), ...(sort !== undefined ? { sort } : {}), - ...(order !== undefined ? { order } : {}) + ...(order !== undefined ? { order } : {}), + ...(withIdentityInfo !== undefined ? { withIdentityInfo } : {}) }), ...(search !== undefined ? { search } : {}), ...(type !== undefined ? { type } : {}), diff --git a/src/pages/AccountDetails/AccountNodes.tsx b/src/pages/AccountDetails/AccountNodes.tsx index fa0eb0c76..b7a6c62b9 100644 --- a/src/pages/AccountDetails/AccountNodes.tsx +++ b/src/pages/AccountDetails/AccountNodes.tsx @@ -49,8 +49,7 @@ export const AccountNodes = () => { search, page, size, - owner: address, - withIdentityInfo: true + owner: address }), getNodesCount({ ...nodeFilters, owner: address, withIdentityInfo: true }) ]).then(([accountNodesData, accountNodesCountData]) => { diff --git a/src/widgets/ValidatorsStatusCard/ValidatorsStatusCard.tsx b/src/widgets/ValidatorsStatusCard/ValidatorsStatusCard.tsx index c4dee6f14..9cf527a20 100644 --- a/src/widgets/ValidatorsStatusCard/ValidatorsStatusCard.tsx +++ b/src/widgets/ValidatorsStatusCard/ValidatorsStatusCard.tsx @@ -4,11 +4,7 @@ import { useSelector } from 'react-redux'; import { ELLIPSIS } from 'appConstants'; import { useFetchStake, useFetchMarkers, useFetchShards } from 'hooks'; -import { - stakeSelector, - markersSelector, - shardsSelector -} from 'redux/selectors'; +import { markersSelector, shardsSelector } from 'redux/selectors'; import { RankType } from 'types'; import { LargeCard } from './components/LargeCard'; @@ -46,16 +42,13 @@ export const ValidatorsStatusCard = ({ const ref = useRef(null); const { markers } = useSelector(markersSelector); - const { unprocessed } = useSelector(stakeSelector); const shards = useSelector(shardsSelector); const shardNodesCount = shards.reduce( (acc, shard) => acc + shard.validators, 0 ); - const shardTotalValidators = new BigNumber(shardNodesCount) - .plus(unprocessed?.auctionValidators ?? 0) - .toFormat(0); + const shardTotalValidators = new BigNumber(shardNodesCount).toFormat(0); const [continentsRank, setContinentsRank] = useState(placeHolderRank);