fixed bug

This commit is contained in:
AmirHossein Mahmoodi
2025-08-26 09:43:24 +03:30
parent 8f14aac481
commit b9081df62b

View File

@@ -24,7 +24,11 @@ const DamageInfo = ({ control, setValue, errors }) => {
<ToggleButtonGroup
value={field.value}
exclusive
onChange={(event, newAlignment) => field.onChange(newAlignment)}
onChange={(event, newAlignment) => {
if (newAlignment !== null) {
field.onChange(newAlignment);
}
}}
>
<ToggleButton value="0">ناوگان داخلی</ToggleButton>
<ToggleButton value="1">ناوگان خارجی</ToggleButton>