fix(governance): consensus table works without previous epoch (#3663)
This commit is contained in:
parent
c734556eb4
commit
3acc0e2401
@ -131,7 +131,7 @@ export const ConsensusValidatorsTable = ({
|
||||
const gridRef = useRef<AgGridReact | null>(null);
|
||||
|
||||
const nodes = useMemo(() => {
|
||||
if (!data || !previousEpochData) return [];
|
||||
if (!data) return [];
|
||||
let canonisedNodes = data
|
||||
.sort((a, b) => {
|
||||
const aVotingPower = new BigNumber(a.rankingScore.votingPower);
|
||||
|
Loading…
Reference in New Issue
Block a user