Skip to content

Commit

Permalink
fix(unlock-app): using both the address + location name
Browse files Browse the repository at this point in the history
  • Loading branch information
julien51 committed May 21, 2024
1 parent b71c9cf commit 7d62e4f
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion unlock-app/src/components/content/event/Form.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,10 @@ export const GoogleMapsAutoComplete = ({
types: [],
},
apiKey: config.googleMapsApiKey,
onPlaceSelected: (place) => onChange(place.formatted_address),
onPlaceSelected: (place, inputRef) => {
// @ts-expect-error Property 'value' does not exist on type 'RefObject<HTMLInputElement>'.ts(2339)
return onChange(`${inputRef.value}, ${place.formatted_address}`)
},
})

return (
Expand Down

0 comments on commit 7d62e4f

Please sign in to comment.