Skip to content

Commit 20dedd2

Browse files
committed
Merge branch 'refactor(web)/metaevidence-to-dispute' of github.com:kleros/kleros-v2 into refactor(web)/metaevidence-to-dispute
2 parents d2c9382 + 55eb385 commit 20dedd2

File tree

2 files changed

+6
-4
lines changed

2 files changed

+6
-4
lines changed

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

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,11 @@ const Overview: React.FC<{ arbitrable?: string; courtID?: string }> = ({ arbitra
8181
return (
8282
<>
8383
<Container>
84-
<h1>{disputeTemplate?.title}</h1>
84+
<h1>
85+
{disputeTemplate
86+
? disputeTemplate?.title
87+
: "The dispute's template is not correct please vote refuse to arbitrate"}
88+
</h1>
8589
<QuestionAndDescription>
8690
<h3>{disputeTemplate?.question}</h3>
8791
<p>{disputeTemplate?.description}</p>

web/src/pages/Cases/CaseDetails/Voting/VotingHistory.tsx

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -43,8 +43,6 @@ const StyledAccordion = styled(Accordion)`
4343
}
4444
`;
4545

46-
const Icon: React.FC<{ seed: number }> = ({ seed }) => <Jazzicon diameter={24} seed={seed} />;
47-
4846
const AccordionContent: React.FC<{
4947
choice: string;
5048
justification: string;
@@ -110,7 +108,7 @@ const VotingHistory: React.FC<{ arbitrable?: string }> = ({ arbitrable }) => {
110108
items={
111109
localRounds.at(currentTab)?.votes.map((vote) => ({
112110
title: shortenAddress(vote.juror.id),
113-
Icon: () => <Icon seed={jsNumberForAddress(vote.juror.id)} />,
111+
Icon: <Jazzicon diameter={24} seed={jsNumberForAddress(vote.juror.id)} />,
114112
body: (
115113
<AccordionContent
116114
choice={vote.choice === 0 ? "Refuse to arbitrate" : disputeTemplate.answers[vote.choice - 1].title}

0 commit comments

Comments
 (0)