Skip to content

Commit

Permalink
fix: typescript build error
Browse files Browse the repository at this point in the history
  • Loading branch information
majkshkurti committed Jul 5, 2024
1 parent cdcee04 commit b96eefe
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions apps/web/components/map/controls/Geocoder.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -88,8 +88,8 @@ export default function Geocoder({
onresult: (_error: Error, fc: FeatureCollection) => void,
) => {
const mapCenter = map?.getCenter();
let _proximity;
if (mapCenter) {
let _proximity = proximity;
if (mapCenter && !proximity) {
_proximity = {
longitude: mapCenter.lng,
latitude: mapCenter.lat,
Expand Down

0 comments on commit b96eefe

Please sign in to comment.