From 2a714a64547430e67c5eeb7c26e4f4590451fa70 Mon Sep 17 00:00:00 2001 From: Harman-singh-waraich Date: Fri, 16 May 2025 02:48:34 +0530 Subject: [PATCH] fix(web): remove-rfa-option-in-duplicate-flow --- web/src/pages/Resolver/Landing/index.tsx | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/web/src/pages/Resolver/Landing/index.tsx b/web/src/pages/Resolver/Landing/index.tsx index 9202292dc..6ebec4b3d 100644 --- a/web/src/pages/Resolver/Landing/index.tsx +++ b/web/src/pages/Resolver/Landing/index.tsx @@ -86,7 +86,10 @@ const Landing: React.FC = () => { if (isUndefined(populatedDispute) || isUndefined(roundData) || isInvalidDispute) return; const answers = populatedDispute.answers.reduce((acc, val) => { - acc.push({ ...val, id: parseInt(val.id, 16).toString() }); + const id = parseInt(val.id, 16); + // don't duplicate RFA option + if (id === 0) return acc; + acc.push({ ...val, id: id.toString() }); return acc; }, []);