Fix staking era select (non-live oversight) (#8226)

This commit is contained in:
Jaco 2022-10-11 19:03:06 +03:00 committed by GitHub
parent 9b2b1d7ee6
commit 3e2aef2353
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -301,7 +301,7 @@ function useSortedTargetsImpl (favorites: string[], withLedger: boolean): Sorted
(): SortedTargets => ({
counterForNominators,
counterForValidators,
historyDepth,
historyDepth: api.consts.staking.historyDepth || historyDepth,
inflation,
maxNominatorsCount,
maxValidatorsCount,
@ -315,7 +315,7 @@ function useSortedTargetsImpl (favorites: string[], withLedger: boolean): Sorted
: baseInfo
)
}),
[baseInfo, counterForNominators, counterForValidators, historyDepth, inflation, maxNominatorsCount, maxValidatorsCount, minNominatorBond, minValidatorBond]
[api, baseInfo, counterForNominators, counterForValidators, historyDepth, inflation, maxNominatorsCount, maxValidatorsCount, minNominatorBond, minValidatorBond]
);
}