Skip to content

Commit 8b6e1f9

Browse files
committed
fix(web): invalid-dispute-vote-reveal
1 parent 36a2455 commit 8b6e1f9

File tree

1 file changed

+5
-0
lines changed
  • web/src/pages/Cases/CaseDetails/Voting/Classic

1 file changed

+5
-0
lines changed

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

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -149,6 +149,11 @@ const getSaltAndChoice = async (
149149
if (isUndefined(rawSalt)) return;
150150
const salt = keccak256(rawSalt);
151151

152+
// when dispute is invalid, just add RFA to the answers array
153+
if (answers.length === 0) {
154+
answers.unshift({ id: "0x0", title: "Refuse To Arbitrate", description: "Refuse To Arbitrate" });
155+
}
156+
152157
const { choice } = answers.reduce<{ found: boolean; choice: bigint }>(
153158
(acc, answer) => {
154159
if (acc.found) return acc;

0 commit comments

Comments
 (0)