From 3acc0e2401394d3230d8566911e731a1befe09c9 Mon Sep 17 00:00:00 2001 From: Sam Keen Date: Tue, 9 May 2023 16:14:04 +0100 Subject: [PATCH] fix(governance): consensus table works without previous epoch (#3663) --- .../home/validator-tables/consensus-validators-table.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/governance/src/routes/staking/home/validator-tables/consensus-validators-table.tsx b/apps/governance/src/routes/staking/home/validator-tables/consensus-validators-table.tsx index 388683bac..5eec88aa8 100644 --- a/apps/governance/src/routes/staking/home/validator-tables/consensus-validators-table.tsx +++ b/apps/governance/src/routes/staking/home/validator-tables/consensus-validators-table.tsx @@ -131,7 +131,7 @@ export const ConsensusValidatorsTable = ({ const gridRef = useRef(null); const nodes = useMemo(() => { - if (!data || !previousEpochData) return []; + if (!data) return []; let canonisedNodes = data .sort((a, b) => { const aVotingPower = new BigNumber(a.rankingScore.votingPower);