react-native-map-link 2.8.1 → 2.8.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/package.json +1 -1
  2. package/src/index.js +1 -1
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "react-native-map-link",
3
- "version": "2.8.1",
3
+ "version": "2.8.2",
4
4
  "description": "Open the map app of the user's choice with a specific location",
5
5
  "main": "index.js",
6
6
  "repository": {
package/src/index.js CHANGED
@@ -132,7 +132,7 @@ export async function showLocation(options) {
132
132
  if (useSourceDestiny || options.directionsMode) {
133
133
  // Use "dir" as this will open up directions
134
134
  url = 'https://www.google.com/maps/dir/?api=1';
135
- url += `&origin=${sourceLatLng}`;
135
+ url += sourceLatLng ? `&origin=${sourceLatLng}` : '';
136
136
  if (!options.googleForceLatLon && title) {
137
137
  url += `&destination=${encodedTitle}`;
138
138
  } else {