diff --git a/src/components/Flashpack/Add/index.jsx b/src/components/Flashpack/Add/index.jsx index a0b1df1..258483d 100644 --- a/src/components/Flashpack/Add/index.jsx +++ b/src/components/Flashpack/Add/index.jsx @@ -23,8 +23,8 @@ const MainForm = () => { const [redirect, setRedirect] = useState(null); const { setMessage, setTitle, setSitePath } = useStatusContext(); const [carModel, setCarModel] = useState(""); - const [carYear, setCarYear] = useState(0); - const [flashpack, setFlashpack] = useState(""); + const [carYear, setCarYear] = useState(); + const [flashpack, setFlashpack] = useState(); const [mappingInputs, setMappingInputs] = useState([{ ecuName: "", ecuVersion: "" }]); const { addFlashpackVersion, @@ -159,7 +159,7 @@ const MainForm = () => { fullWidth value={flashpack} onChange={onFlashpackChange} - type="text" + type="number" />
{mappingInputs.map((item, index) => (