diff --git a/front/src/applications/stdcm/components/StdcmForm/StdcmConfig.tsx b/front/src/applications/stdcm/components/StdcmForm/StdcmConfig.tsx index 8ae585545a6..43be93425ba 100644 --- a/front/src/applications/stdcm/components/StdcmForm/StdcmConfig.tsx +++ b/front/src/applications/stdcm/components/StdcmForm/StdcmConfig.tsx @@ -5,8 +5,8 @@ import cx from 'classnames'; import { useTranslation } from 'react-i18next'; import { useSelector } from 'react-redux'; -import { extractMarkersInfo } from 'applications/stdcm/utils'; import useStdcmTowedRollingStock from 'applications/stdcm/hooks/useStdcmTowedRollingStock'; +import { extractMarkersInfo } from 'applications/stdcm/utils'; import { validateMaxSpeed, validateTotalLength, @@ -217,9 +217,14 @@ const StdcmConfig = ({ })} label={t('simulation.getSimulation')} onClick={startSimulation} - isDisabled={disabled || !showBtnToLaunchSimulation || !!consistErrors.totalMass || !!consistErrors.totalLength || !!consistErrors.maxSpeed} + isDisabled={ + disabled || + !showBtnToLaunchSimulation || + !!consistErrors.totalMass || + !!consistErrors.totalLength || + !!consistErrors.maxSpeed + } /> - !!consistErrors.maxSpeed {formErrors && ( -
+
-
+