diff --git a/frontend/src/features/missions/MissionForm/ActionForm/ControlForm/InfractionForm/InfractionFormHeaderVehicle.tsx b/frontend/src/features/missions/MissionForm/ActionForm/ControlForm/InfractionForm/InfractionFormHeaderVehicle.tsx index e9677791bd..1dd38132ae 100644 --- a/frontend/src/features/missions/MissionForm/ActionForm/ControlForm/InfractionForm/InfractionFormHeaderVehicle.tsx +++ b/frontend/src/features/missions/MissionForm/ActionForm/ControlForm/InfractionForm/InfractionFormHeaderVehicle.tsx @@ -9,11 +9,6 @@ import type { EnvActionControl } from '../../../../../../domain/entities/mission export function InfractionFormHeaderVehicle({ envActionIndex, infractionPath }) { const [vehicleTypeField] = useField(`envActions.${envActionIndex}.vehicleType`) - const [vesselTypeField, , vesselTypeHelpers] = useField(`${infractionPath}.vesselType`) - - const handleChangeVesselType = v => { - vesselTypeHelpers.setValue(v) - } return ( @@ -27,13 +22,11 @@ export function InfractionFormHeaderVehicle({ envActionIndex, infractionPath }) <> - - - + )}