diff --git a/src/components/ButtonGroupIp.res b/src/components/ButtonGroupIp.res index 58fd16ccb..cf0953ab8 100644 --- a/src/components/ButtonGroupIp.res +++ b/src/components/ButtonGroupIp.res @@ -13,10 +13,11 @@ let make = ( let buttons = options - ->Js.Array2.map(op => { + ->Array.mapWithIndex((op, i) => { let active = input.value->LogicUtils.getStringFromJson("") === op.value if isSeparate {