ShipSearch: fix incomplete ship entry case
@@ -162,7 +162,8 @@ export function ShipSearch<I extends string, V extends Value<I>>(
<FieldArray
name={id}
render={(arrayHelpers) => {
- const onAdd = () => {
+ const onAdd = (ship: string) => {
+ setFieldValue(name(), ship);
inputIdx.current += 1;
arrayHelpers.push("");
};
