diff --git a/src/components/ContactEdit.tsx b/src/components/ContactEdit.tsx index 72ad82a..6512827 100644 --- a/src/components/ContactEdit.tsx +++ b/src/components/ContactEdit.tsx @@ -87,7 +87,6 @@ const ValueTypeComponent = (props: ValueTypeComponentProps) => { { value={props.value.type} types={props.types} onChange={ - (contact: object, key: number, payload: any) => props.onChange(props.name, payload, props.value.value) + (event: React.ChangeEvent) => ( + props.onChange(props.name, event.target.value, props.value.value) + ) } />