From cf1b6f38b1a8491140536569f8dce921e81deef5 Mon Sep 17 00:00:00 2001 From: Jaco Greeff Date: Fri, 19 Jun 2020 15:02:30 +0200 Subject: [PATCH] Filter waiting list (#2990) --- packages/page-staking/src/Overview/Address/index.tsx | 2 +- packages/page-staking/src/Overview/CurrentList.tsx | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/packages/page-staking/src/Overview/Address/index.tsx b/packages/page-staking/src/Overview/Address/index.tsx index faa5b31d8c..caf6bcd3b4 100644 --- a/packages/page-staking/src/Overview/Address/index.tsx +++ b/packages/page-staking/src/Overview/Address/index.tsx @@ -109,7 +109,7 @@ function checkVisibility (api: ApiPromise, address: string, filterName: string, function Address ({ address, className = '', filterName, hasQueries, isAuthor, isElected, isFavorite, isMain, lastBlock, nominatedBy, onlineCount, onlineMessage, points, setNominators, toggleFavorite }: Props): React.ReactElement | null { const { api } = useApi(); const { allAccounts } = useAccounts(); - const accountInfo = useCall(isMain && api.derive.accounts.info, [address]); + const accountInfo = useCall(api.derive.accounts.info, [address]); const stakingInfo = useCall(api.derive.staking.query, [address]); const [{ commission, nominators, stakeOther, stakeOwn }, setStakingState] = useState({ nominators: [] }); const [isVisible, setIsVisible] = useState(true); diff --git a/packages/page-staking/src/Overview/CurrentList.tsx b/packages/page-staking/src/Overview/CurrentList.tsx index a1622bdd50..bffdda84e5 100644 --- a/packages/page-staking/src/Overview/CurrentList.tsx +++ b/packages/page-staking/src/Overview/CurrentList.tsx @@ -166,6 +166,7 @@ function CurrentList ({ hasQueries, isIntentions, next, setNominators, stakingOv ? ( ('No waiting validators found')} + filter={filter} header={headerActive} > {_renderRows(elected, false).concat(..._renderRows(waiting, false))}