diff --git a/src/components/location-picker.tsx b/src/components/location-picker.tsx index e85dfa0..6f1e028 100644 --- a/src/components/location-picker.tsx +++ b/src/components/location-picker.tsx @@ -68,6 +68,12 @@ export const LocationPicker = () => { } }, [isEditing]); + useEffect(() => { + if (location) { + setShowMapButton(true); + } + }, [location]); + useEffect(() => { const _startDate = startDate ? startDate : new Date( -5364662060); // 1/1/1750 const _endDate = endDate ? endDate : new Date(Date.now());