Skip to content

Commit

Permalink
Merge pull request #435 from kleros/fix/add-refuse-to-arbitrate-metae…
Browse files Browse the repository at this point in the history
…vidence-not-loading

Fix: add refuse to arbitrate when the dispute is not loading
  • Loading branch information
alcercu authored Oct 11, 2024
2 parents e60431c + 4a27e3a commit 9aeb44f
Showing 1 changed file with 18 additions and 18 deletions.
36 changes: 18 additions & 18 deletions src/components/case-details-card.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -761,26 +761,26 @@ export default function CaseDetailsCard({ ID }) {
.
</div>
)}
{Number(dispute.period) < "3" && !votesData.voted && (
<>
<div>
If the dispute is failing to load and appears to be broken it is advised to refuse to arbitrate. Please
cast your vote using button below.
</div>
<Button
style={{ color: "#4d00b4", marginTop: "16px", float: "right" }}
disabled={!votesData.canVote}
ghost={!votesData.canVote}
id={0}
onClick={onVoteClick}
size="large"
>
{"Refuse to Arbitrate"}
</Button>
</>
)}
</div>
)}
{dispute && Number(dispute.period) < "3" && !votesData.voted && (
<>
<div style={{ marginTop: "32px" }}>
If the dispute is failing to load and appears to be broken it is advised to refuse to arbitrate. Please cast
your vote using button below.
</div>
<Button
style={{ color: "#4d00b4", marginTop: "16px", float: "right" }}
disabled={!votesData.canVote}
ghost={!votesData.canVote}
id={0}
onClick={onVoteClick}
size="large"
>
{"Refuse to Arbitrate"}
</Button>
</>
)}
</>
);
}
Expand Down

0 comments on commit 9aeb44f

Please sign in to comment.