@@ -14,6 +14,7 @@ import PolicyIcon from "svgs/icons/policy.svg";
1414import { StyledSkeleton } from "components/StyledSkeleton" ;
1515import DisputeInfo from "components/DisputeCard/DisputeInfo" ;
1616import Verdict from "components/Verdict/index" ;
17+ import { useVotingHistory } from "hooks/queries/useVotingHistory" ;
1718
1819const Container = styled . div `
1920 width: 100%;
@@ -86,10 +87,13 @@ const Overview: React.FC<IOverview> = ({ arbitrable, courtID, currentPeriodIndex
8687 const { data : disputeDetails } = useDisputeDetailsQuery ( id ) ;
8788 const { data : courtPolicyURI } = useCourtPolicyURI ( courtID ) ;
8889 const { data : courtPolicy } = useCourtPolicy ( courtID ) ;
90+ const { data : votingHistory } = useVotingHistory ( id ) ;
8991 const courtName = courtPolicy ?. name ;
9092 const court = disputeDetails ?. dispute ?. court ;
9193 const rewards = court ? `≥ ${ formatEther ( court . feeForJuror ) } ETH` : undefined ;
9294 const category = disputeTemplate ? disputeTemplate . category : undefined ;
95+ const localRounds = votingHistory ?. dispute ?. disputeKitDispute ?. localRounds ;
96+
9397 return (
9498 < >
9599 < Container >
@@ -126,7 +130,7 @@ const Overview: React.FC<IOverview> = ({ arbitrable, courtID, currentPeriodIndex
126130 </ >
127131 ) }
128132
129- < DisputeInfo courtId = { court ?. id } court = { courtName } { ...{ rewards, category } } />
133+ < DisputeInfo courtId = { court ?. id } court = { courtName } round = { localRounds ?. length } { ...{ rewards, category } } />
130134 </ Container >
131135 < ShadeArea >
132136 < p > Make sure you understand the Policies</ p >
0 commit comments