Skip to content

Commit f946f6e

Browse files
kemurujaybuidl
authored andcommitted
feat(web): adding missing round inside case overview
1 parent 96245e3 commit f946f6e

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

web/src/pages/Cases/CaseDetails/Overview.tsx

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ import PolicyIcon from "svgs/icons/policy.svg";
1414
import { StyledSkeleton } from "components/StyledSkeleton";
1515
import DisputeInfo from "components/DisputeCard/DisputeInfo";
1616
import Verdict from "components/Verdict/index";
17+
import { useVotingHistory } from "hooks/queries/useVotingHistory";
1718

1819
const 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

Comments
 (0)