You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@Paul-Okello Bro, my code worked in first attempt so if your error is not resolved yet that try to compare or replace it with my code
My Code:
// Both States In Header.jsx file
const [autocomplete, setAutocomplete] = useState(null);
const onLoad = (autoComp) => setAutocomplete(autoComp);
//onPlaceChange Function
const onPlaceChanged = () => {
const lat = autocomplete.getPlace().geometry.location.lat();
const lng = autocomplete.getPlace().geometry.location.lng();
setCoordinates({ lat, lng });
};
I'm getting this error when using the search feature
The text was updated successfully, but these errors were encountered: