Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion frontend/src/components/map/LocationPicker.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -196,7 +196,7 @@
if (!mapContainer.current || map.current) return;

const safeLat = latitude && Number.isFinite(latitude) ? latitude : 0;
const safeLng = longitude && Number.isFinite(longitude) ? longitude : 0;

Check warning on line 199 in frontend/src/components/map/LocationPicker.tsx

View workflow job for this annotation

GitHub Actions / frontend-lint

react-hooks(exhaustive-deps)

frontend/src/components/map/LocationPicker.tsx:199:21: React Hook useEffect has missing dependencies: 'longitude', 'uncertaintyMeters', 'updateMarker', 'latitude', 'onChange', and 'markerColor'

const { map: mapInstance, geolocateControl } = createMap(
mapContainer.current,
Expand Down Expand Up @@ -392,7 +392,7 @@
renderOption={(props, option) => {
const { key, ...otherProps } = props;
return (
<Box component="li" key={key} {...otherProps} sx={{ fontSize: "0.875rem" }}>
<Box component="li" key={key} {...otherProps} sx={{ typography: "body2" }}>
{option.display_name}
</Box>
);
Expand Down
Loading