abmp-npm 1.1.34 → 1.1.36
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 +1 -1
- package/pages/Home.js +13 -3
- package/public/Utils/homePage.js +1 -0
package/package.json
CHANGED
package/pages/Home.js
CHANGED
|
@@ -424,9 +424,17 @@ const homePageOnReady = async ({
|
|
|
424
424
|
console.log('filter inside nearByHandler', filter);
|
|
425
425
|
console.log('success inside nearByHandler', success);
|
|
426
426
|
const renderingEnv = await rendering.env();
|
|
427
|
-
if (!success
|
|
428
|
-
logMessage(`
|
|
429
|
-
|
|
427
|
+
if (!success) {
|
|
428
|
+
logMessage(`nearByHandler Failed to get user location in ${renderingEnv}`);
|
|
429
|
+
if (renderingEnv !== 'backend') {
|
|
430
|
+
logMessage(
|
|
431
|
+
`nearByHandler Failed to get user location in ${renderingEnv}, changing to nearByState`
|
|
432
|
+
);
|
|
433
|
+
multiStateBoxSelector.changeState('nearByState');
|
|
434
|
+
}
|
|
435
|
+
logMessage(
|
|
436
|
+
`nearByHandler continued, multiStateBoxSelector.currentState: ${multiStateBoxSelector.currentState}`
|
|
437
|
+
);
|
|
430
438
|
_$w('#nearBy').checked = false;
|
|
431
439
|
updateFiltersState();
|
|
432
440
|
// 4. Re-enable nearby input
|
|
@@ -438,11 +446,13 @@ const homePageOnReady = async ({
|
|
|
438
446
|
if (!isSearchingNearby) {
|
|
439
447
|
if (await noSearchCriteria()) {
|
|
440
448
|
console.log('no search criteria and no near by');
|
|
449
|
+
logMessage(`nearByHandler no search criteria and no near by, changing to noSearchCriteria`);
|
|
441
450
|
multiStateBoxSelector.changeState('noSearchCriteria');
|
|
442
451
|
// 4. Re-enable nearby input
|
|
443
452
|
_$w('#nearBy').enable();
|
|
444
453
|
return;
|
|
445
454
|
}
|
|
455
|
+
logMessage(`nearByHandler search criteria and no near by, changing to resultsState`);
|
|
446
456
|
multiStateBoxSelector.changeState('resultsState');
|
|
447
457
|
}
|
|
448
458
|
|
package/public/Utils/homePage.js
CHANGED
|
@@ -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 [];
|