fix(3661): ensure validators consensus table works without previous epoch data

This commit is contained in:
sam-keen
2023-05-09 15:42:45 +01:00
parent 3740a97d7e
commit 77b7d7739d
@@ -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);