Skip to content

Commit 2a714a6

Browse files
committed
fix(web): remove-rfa-option-in-duplicate-flow
1 parent a79b706 commit 2a714a6

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

web/src/pages/Resolver/Landing/index.tsx

+4-1
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,10 @@ const Landing: React.FC = () => {
8686
if (isUndefined(populatedDispute) || isUndefined(roundData) || isInvalidDispute) return;
8787

8888
const answers = populatedDispute.answers.reduce<Answer[]>((acc, val) => {
89-
acc.push({ ...val, id: parseInt(val.id, 16).toString() });
89+
const id = parseInt(val.id, 16);
90+
// don't duplicate RFA option
91+
if (id === 0) return acc;
92+
acc.push({ ...val, id: id.toString() });
9093
return acc;
9194
}, []);
9295

0 commit comments

Comments
 (0)