abmp-npm 1.1.24 → 1.1.26

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/eslint.config.js CHANGED
@@ -30,7 +30,7 @@ module.exports = [
30
30
  rules: {
31
31
  // Error prevention
32
32
  'no-var': 'error',
33
- 'no-unused-vars': ['warn', { argsIgnorePattern: '^_', varsIgnorePattern: '^_' }],
33
+ 'no-unused-vars': ['error', { argsIgnorePattern: '^_', varsIgnorePattern: '^_' }],
34
34
  'no-console': ['warn', { allow: ['warn', 'error', 'log', 'info'] }],
35
35
  'no-debugger': 'warn',
36
36
  'no-duplicate-imports': 'error',
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "abmp-npm",
3
- "version": "1.1.24",
3
+ "version": "1.1.26",
4
4
  "main": "index.js",
5
5
  "scripts": {
6
6
  "test": "echo \"Error: no test specified\" && exit 1",
package/pages/Home.js CHANGED
@@ -56,7 +56,7 @@ const homePageOnReady = async ({
56
56
  detectMobile();
57
57
  initPageUI();
58
58
  attachEventListeners();
59
- // await handleUrlParams();
59
+ await handleUrlParams();
60
60
 
61
61
  async function detectMobile() {
62
62
  try {
@@ -418,8 +418,10 @@ const homePageOnReady = async ({
418
418
  // 3. Do the query
419
419
  const { success, filter: newFilter } = await getAndSetUserLocation(isSearchingNearby, filter);
420
420
  filter = newFilter;
421
-
421
+ console.log('filter inside nearByHandler', filter);
422
+ console.log('success inside nearByHandler', success);
422
423
  if (!success) {
424
+ console.log('not success inside nearByHandler, changing to nearby state');
423
425
  multiStateBoxSelector.changeState('nearByState');
424
426
  _$w('#nearBy').checked = false;
425
427
  updateFiltersState();
@@ -366,6 +366,7 @@ const createHomepageUtils = (_$w, filterProfiles) => {
366
366
  },
367
367
  };
368
368
  location = await wixWindow.getCurrentGeolocation();
369
+ console.log('location inside getAndSetUserLocation', location);
369
370
  const userLat = location.coords?.latitude ?? 0;
370
371
  const userLong = location.coords?.longitude ?? 0;
371
372
  filter = {