Skip to content

Commit 28e85d6

Browse files
committed
fix: tiny bug in barchart
1 parent 3db0efc commit 28e85d6

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

web/src/hooks/queries/useHomePageQuery.ts

+1
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@ const homePageQuery = graphql(`
2525
numberDisputes
2626
feeForJuror
2727
effectiveStake
28+
stake
2829
}
2930
}
3031
`);

web/src/pages/Home/CourtOverview/Chart.tsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,7 @@ const Chart: React.FC = () => {
9292
return {
9393
labels: [...accData.labels, current.name ?? ""],
9494
stakes: [...accData.stakes, parseFloat(formatUnits(current.effectiveStake, 18))],
95-
totalStake: accData.totalStake + parseFloat(formatUnits(current.effectiveStake, 18)),
95+
totalStake: accData.totalStake + parseFloat(formatUnits(current.stake, 18)),
9696
};
9797
}
9898
return accData;

0 commit comments

Comments
 (0)