Skip to content

Commit af45967

Browse files
authored
Merge pull request #1488 from kleros/fix(web)/fix-reveal-vote-failing
fix(web): account-for-rta-option-while-brute-forcing
2 parents e629d92 + 4c14eee commit af45967

File tree

1 file changed

+3
-1
lines changed
  • web/src/pages/Cases/CaseDetails/Voting/Classic

1 file changed

+3
-1
lines changed

web/src/pages/Cases/CaseDetails/Voting/Classic/Reveal.tsx

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,7 @@ const Reveal: React.FC<IReveal> = ({ arbitrable, voteIDs, setIsOpen, commit, isR
9898
<StyledButton
9999
variant="secondary"
100100
text="Justify & Reveal"
101-
disabled={isSending}
101+
disabled={isSending || isUndefined(disputeDetails)}
102102
isLoading={isSending}
103103
onClick={handleReveal}
104104
/>
@@ -126,6 +126,8 @@ const getSaltAndChoice = async (
126126
})();
127127
if (isUndefined(rawSalt)) return;
128128
const salt = keccak256(rawSalt);
129+
130+
answers.unshift({ title: "Refuse To Arbitrate", description: "Refuse To Arbitrate" });
129131
const { choice } = answers.reduce<{ found: boolean; choice: number }>(
130132
(acc, _, i) => {
131133
if (acc.found) return acc;

0 commit comments

Comments
 (0)