abmp-npm 1.1.43 → 1.1.44

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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "abmp-npm",
3
- "version": "1.1.43",
3
+ "version": "1.1.44",
4
4
  "main": "index.js",
5
5
  "scripts": {
6
6
  "test": "echo \"Error: no test specified\" && exit 1",
@@ -368,8 +368,8 @@ const createHomepageUtils = (_$w, filterProfiles, logMessage) => {
368
368
  location = await wixWindow.getCurrentGeolocation();
369
369
 
370
370
  console.log('location inside getAndSetUserLocation', location);
371
- const userLat = location.coords?.latitude ?? 0;
372
- const userLong = location.coords?.longitude ?? 0;
371
+ const userLat = location?.coords?.latitude ?? 0;
372
+ const userLong = location?.coords?.longitude ?? 0;
373
373
  filter = {
374
374
  ...filter,
375
375
  postalcode: isSearchingNearby ? null : filter.postalcode,