Skip to content

Commit

Permalink
Merge pull request #455 from kleros/feat/add-adblock-check
Browse files Browse the repository at this point in the history
Fix: add adblock mention in refuse to arbitrate text
  • Loading branch information
jaybuidl authored Jan 22, 2025
2 parents 3b17d6c + 49c3bf5 commit 7f9e0f4
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 4 deletions.
2 changes: 1 addition & 1 deletion src/bootstrap/dataloader.js
Original file line number Diff line number Diff line change
Expand Up @@ -178,7 +178,7 @@ const funcs = {
}
return {
description:
"The data for this case is not formatted correctly or has been tampered since the time of its submission. Please refresh the page and refuse to arbitrate if the problem persists.",
"In case you have an AdBlock enabled, please disable it and refresh the page. It may be preventing the correct working of the page. If that's not the case, the data for this case is not formatted correctly or has been tampered since the time of its submission. Please refresh the page and refuse to arbitrate if the problem persists.",
title: "Invalid or tampered case data, refuse to arbitrate.",
};
},
Expand Down
9 changes: 6 additions & 3 deletions src/components/case-details-card.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -780,11 +780,14 @@ export default function CaseDetailsCard({ ID }) {
)}
</div>
)}
{showRefuse && dispute && Number(dispute.period) < "3" && !votesData.voted && (
{showRefuse && dispute && Number(dispute.period) < "3" && !votesData.voted && votesData.drawnInCurrentRound && (
<>
<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.
If the dispute is failing to load and appears to be broken, in case you have an AdBlock enabled please
disable it and refresh the page as it may be preventing the correct working of the page. If that is not the
case, the data for this case is not formatted correctly or has been tampered since the time of its
submission. Please refresh the page, if the problem persists it is advised to refuse to arbitrate. Please
cast your vote using button below.
</div>
<Button
style={{ color: "#4d00b4", marginTop: "16px", float: "right" }}
Expand Down

0 comments on commit 7f9e0f4

Please sign in to comment.