diff --git a/unlock-app/src/components/content/event/Form.tsx b/unlock-app/src/components/content/event/Form.tsx index 0c248ff0b1e..d059c4b640c 100644 --- a/unlock-app/src/components/content/event/Form.tsx +++ b/unlock-app/src/components/content/event/Form.tsx @@ -54,8 +54,12 @@ export const GoogleMapsAutoComplete = ({ }, apiKey: config.googleMapsApiKey, onPlaceSelected: (place, inputRef) => { + if (place.formatted_address) { + // @ts-expect-error Property 'value' does not exist on type 'RefObject'.ts(2339) + return onChange(`${inputRef.value}, ${place.formatted_address}`) + } // @ts-expect-error Property 'value' does not exist on type 'RefObject'.ts(2339) - return onChange(`${inputRef.value}, ${place.formatted_address}`) + return onChange(inputRef.value) }, })