diff --git a/src/components/gpx-dialog/GpxDialog.tsx b/src/components/gpx-dialog/GpxDialog.tsx index 3384f13..39a27ec 100644 --- a/src/components/gpx-dialog/GpxDialog.tsx +++ b/src/components/gpx-dialog/GpxDialog.tsx @@ -98,15 +98,15 @@ const GpxDialog: Component<{}> = (props) => { gpx: gpx(), }); }; - const gpxSharedChangeHandler = (event: any) => { + const gpxToChangeHandler = (event: any) => { const newGpx: Gpx = cloneDeep(gpx()) as Gpx; if (!isPlainObject(newGpx.extensions)) { newGpx.extensions = {}; } - newGpx.extensions.shared = event.target.value; + newGpx.extensions.to = event.target.value; setGpx(newGpx); console.log({ - caller: 'GpxDialog / gpxSharedChangeHandler', + caller: 'GpxDialog / gpxToChangeHandler', value: event.target.value, gpx: gpx(), newGpx, @@ -190,11 +190,11 @@ const GpxDialog: Component<{}> = (props) => { InputProps={{ inputComponent: 'textarea' }} />