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 889dd70 commit 59de400
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 @@ -20,7 +20,7 @@ export const useStakingStatistics = () => {
[api?.isConnected]
)
const { eraIndex, eraStartedOn } = useMemo(
() => activeEra ?? { eraIndex: new BN(0), eraStartedOn: new Date(0) },
() => activeEra ?? { eraIndex: new BN(0), eraStartedOn: 0 },
[activeEra, api?.isConnected]
)
const now = useObservable(() => api?.query.timestamp.now(), [api?.isConnected])
Expand Down

0 comments on commit 59de400

Please sign in to comment.