Skip to content

Commit

Permalink
fix: return empty string when maps provider not chosen (on first run)
Browse files Browse the repository at this point in the history
  • Loading branch information
istudyatuni committed Nov 5, 2023
1 parent cfb9216 commit 6d85867
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/utils/maps.js
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,8 @@ export function formatMapLink(provider, lat, lon) {
params.append('mlon', lon)
} else if (provider === 'google') {
params.append('q', [lat, lon])
} else {
return ''
}
let base = maps_providers.find((p) => p.key === provider).base_url
return base + params.toString()
Expand Down

0 comments on commit 6d85867

Please sign in to comment.