Skip to content

Commit

Permalink
Update packages/ui/src/validators/hooks/useStakingStatistics.tsx
Browse files Browse the repository at this point in the history
Co-authored-by: Theophile Sandoz <theophile.sandoz@gmail.com>
  • Loading branch information
eshark9312 and thesan committed Jul 19, 2023
1 parent 59de400 commit 4f77503
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/ui/src/validators/hooks/useStakingStatistics.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ export const useStakingStatistics = () => {
const allValidatorsCount = useObservable(() => api?.query.staking.counterForValidators(), [api?.isConnected])
const allNominatorsCount = useObservable(() => api?.query.staking.counterForNominators(), [api?.isConnected])
const lastValidatorRewards = useObservable(
() => api?.query.staking.erasValidatorReward(eraIndex.sub(new BN(1))),
() => api?.query.staking.erasValidatorReward(eraIndex.subn(1)),
[eraIndex, api?.isConnected]
)
const totalRewards = useObservable(() => api?.derive.staking.erasRewards(), [api?.isConnected])
Expand Down

0 comments on commit 4f77503

Please sign in to comment.