abmp-npm 1.1.35 → 1.1.37

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.35",
3
+ "version": "1.1.37",
4
4
  "main": "index.js",
5
5
  "scripts": {
6
6
  "test": "echo \"Error: no test specified\" && exit 1",
package/pages/Home.js CHANGED
@@ -427,8 +427,14 @@ const homePageOnReady = async ({
427
427
  if (!success) {
428
428
  logMessage(`nearByHandler Failed to get user location in ${renderingEnv}`);
429
429
  if (renderingEnv !== 'backend') {
430
+ logMessage(
431
+ `nearByHandler Failed to get user location in ${renderingEnv}, changing to nearByState`
432
+ );
430
433
  multiStateBoxSelector.changeState('nearByState');
431
434
  }
435
+ logMessage(
436
+ `nearByHandler continued, multiStateBoxSelector.currentState: ${multiStateBoxSelector.currentState.id}`
437
+ );
432
438
  _$w('#nearBy').checked = false;
433
439
  updateFiltersState();
434
440
  // 4. Re-enable nearby input
@@ -440,11 +446,13 @@ const homePageOnReady = async ({
440
446
  if (!isSearchingNearby) {
441
447
  if (await noSearchCriteria()) {
442
448
  console.log('no search criteria and no near by');
449
+ logMessage(`nearByHandler no search criteria and no near by, changing to noSearchCriteria`);
443
450
  multiStateBoxSelector.changeState('noSearchCriteria');
444
451
  // 4. Re-enable nearby input
445
452
  _$w('#nearBy').enable();
446
453
  return;
447
454
  }
455
+ logMessage(`nearByHandler search criteria and no near by, changing to resultsState`);
448
456
  multiStateBoxSelector.changeState('resultsState');
449
457
  }
450
458
 
@@ -682,6 +682,7 @@ const createHomepageUtils = (_$w, filterProfiles, veloGetCurrentGeolocation, log
682
682
  longitude: 0,
683
683
  }) === JSON.stringify(DEFAULT_FILTER)
684
684
  ) {
685
+ logMessage(`search no search criteria, changing to noSearchCriteria`);
685
686
  multiStateBoxSelector.changeState('noSearchCriteria');
686
687
 
687
688
  return [];