Detect session.validators for derive extraction (#1562)
* Detect session.validators for derive extraction * Add comment * Indexed extraction without session
This commit is contained in:
@@ -25,7 +25,7 @@ export function overview (api: ApiInterfaceRx): () => Observable<DerivedStakingO
|
||||
combineLatest([
|
||||
of({ currentElected, currentEra, currentIndex, validators, validatorCount }),
|
||||
// this will change on a per block basis, keep it innermost (and it needs eraIndex)
|
||||
api.query.staking.currentEraPointsEarned
|
||||
api.query.staking?.currentEraPointsEarned
|
||||
? api.query.staking.currentEraPointsEarned<EraPoints>(currentEra)
|
||||
: of(createType('EraPoints'))
|
||||
])
|
||||
|
||||
Reference in New Issue
Block a user