Always include staking favourites in the list (#2131)

* Always include staking favourites in the list

* Filter by actual session validators
This commit is contained in:
Jaco Greeff 2020-01-15 23:38:29 +01:00 committed by GitHub
parent d9dccf6d08
commit 96b238efe8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -38,7 +38,7 @@ function Nominate ({ className, controllerId, nominees, onClose, next, stakingOv
useEffect((): void => {
if (stakingOverview) {
setValidators((stakingOverview.currentElected || []).map((acc): string => acc.toString()));
setValidators(stakingOverview.validators.map((acc): string => acc.toString()));
}
}, [stakingOverview]);