cedricdelpoux / react-google-places-suggest

React component to select geolocated suggestion from Google Maps Places API
https://cedricdelpoux.github.io/react-google-places-suggest/
MIT License
86 stars 44 forks source link

Check for undefined main_text_matched_substrings #96

Closed mschulz-716 closed 3 years ago

mschulz-716 commented 3 years ago

It can happen that structured_formatting.main_text_matched_substrings is undefined, e.g. if you search for "90 Imagumano Minamihiyoshi". This will result in an error in the Prediction component.

cedricdelpoux commented 3 years ago

Thank you @mschulz-716