Adjust staking max filter (#4600)

This commit is contained in:
Jaco Greeff 2021-02-04 19:24:16 +01:00 committed by GitHub
parent 959c0f099b
commit c1ed355706
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -85,7 +85,7 @@ function applyFilter (validators: ValidatorInfo[], medianComm: number, allIdenti
const stashId = accountId.toString();
const thisIdentity = allIdentity[stashId];
const nomCount = nominatedBy?.[stashId]?.length || numNominators || 0;
const nomCount = numNominators || nominatedBy?.[stashId]?.length || 0;
if (
(!withElected || isElected) &&