diff --git a/webapp/src/components/App/Singlestudy/explore/Modelization/BindingConstraints/BindingConstView/ConstraintFields.tsx b/webapp/src/components/App/Singlestudy/explore/Modelization/BindingConstraints/BindingConstView/ConstraintFields.tsx index 1e6b29f4fd..8a5698fabb 100644 --- a/webapp/src/components/App/Singlestudy/explore/Modelization/BindingConstraints/BindingConstView/ConstraintFields.tsx +++ b/webapp/src/components/App/Singlestudy/explore/Modelization/BindingConstraints/BindingConstView/ConstraintFields.tsx @@ -31,6 +31,24 @@ function Fields({ study }: Props) { [t], ); + const operatorOptions = useMemo( + () => + OPERATORS.map((operator) => ({ + label: t(`study.modelization.bindingConst.operator.${operator}`), + value: operator, + })), + [t], + ); + + const timeStepOptions = useMemo( + () => + TIME_STEPS.map((timeStep) => ({ + label: t(`global.time.${timeStep}`), + value: timeStep, + })), + [t], + ); + //////////////////////////////////////////////////////////////// // JSX //////////////////////////////////////////////////////////////// @@ -66,7 +84,7 @@ function Fields({ study }: Props) { label={t("study.modelization.bindingConst.type")} size="small" variant="outlined" - options={TIME_STEPS} + options={timeStepOptions} control={control} />