@@ -14,6 +14,7 @@ import PolicyIcon from "svgs/icons/policy.svg";
14
14
import { StyledSkeleton } from "components/StyledSkeleton" ;
15
15
import DisputeInfo from "components/DisputeCard/DisputeInfo" ;
16
16
import Verdict from "components/Verdict/index" ;
17
+ import { useVotingHistory } from "hooks/queries/useVotingHistory" ;
17
18
18
19
const Container = styled . div `
19
20
width: 100%;
@@ -86,10 +87,13 @@ const Overview: React.FC<IOverview> = ({ arbitrable, courtID, currentPeriodIndex
86
87
const { data : disputeDetails } = useDisputeDetailsQuery ( id ) ;
87
88
const { data : courtPolicyURI } = useCourtPolicyURI ( courtID ) ;
88
89
const { data : courtPolicy } = useCourtPolicy ( courtID ) ;
90
+ const { data : votingHistory } = useVotingHistory ( id ) ;
89
91
const courtName = courtPolicy ?. name ;
90
92
const court = disputeDetails ?. dispute ?. court ;
91
93
const rewards = court ? `≥ ${ formatEther ( court . feeForJuror ) } ETH` : undefined ;
92
94
const category = disputeTemplate ? disputeTemplate . category : undefined ;
95
+ const localRounds = votingHistory ?. dispute ?. disputeKitDispute ?. localRounds ;
96
+
93
97
return (
94
98
< >
95
99
< Container >
@@ -126,7 +130,7 @@ const Overview: React.FC<IOverview> = ({ arbitrable, courtID, currentPeriodIndex
126
130
</ >
127
131
) }
128
132
129
- < DisputeInfo courtId = { court ?. id } court = { courtName } { ...{ rewards, category } } />
133
+ < DisputeInfo courtId = { court ?. id } court = { courtName } round = { localRounds ?. length } { ...{ rewards, category } } />
130
134
</ Container >
131
135
< ShadeArea >
132
136
< p > Make sure you understand the Policies</ p >
0 commit comments