From e614e6cee7fc199a06cac50ab46b9a18f605769f Mon Sep 17 00:00:00 2001 From: kemuru <102478601+kemuru@users.noreply.github.com> Date: Thu, 19 Sep 2024 23:23:11 +0200 Subject: [PATCH] fix: add missing number votes fields --- web/src/hooks/queries/useHomePageBlockQuery.ts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/web/src/hooks/queries/useHomePageBlockQuery.ts b/web/src/hooks/queries/useHomePageBlockQuery.ts index a70b2dff1..7b2c7a8c0 100644 --- a/web/src/hooks/queries/useHomePageBlockQuery.ts +++ b/web/src/hooks/queries/useHomePageBlockQuery.ts @@ -61,6 +61,8 @@ export const useHomePageBlockQuery = (blockNumber: number) => { ...c, numberDisputes: usedQuery.data.presentCourts[i].numberDisputes - c.numberDisputes, treeNumberDisputes: usedQuery.data.presentCourts[i].numberDisputes - c.numberDisputes, + numberVotes: usedQuery.data.presentCourts[i].numberVotes - c.numberVotes, + treeNumberVotes: usedQuery.data.presentCourts[i].numberVotes - c.numberVotes, stake: (BigInt(usedQuery.data.presentCourts[i].stake) + BigInt(c.stake)) / 2n, })); const mostDisputedCourt = diffCourts.sort((a, b) => b.numberDisputes - a.numberDisputes)[0];