From 97ca23bc93f0d549269d4f316f6a0ba1dc7e0099 Mon Sep 17 00:00:00 2001 From: Leah Schumann Date: Thu, 29 Jun 2023 08:44:09 -0400 Subject: [PATCH] some debugging code added --- .../service-location-helper/service-location-helper.js | 4 ++++ .../shop-question/shop-list-button/shop-list-button.vue | 9 +++++---- 2 files changed, 9 insertions(+), 4 deletions(-) diff --git a/src/layouts/service-location/helpers/service-location-helper/service-location-helper.js b/src/layouts/service-location/helpers/service-location-helper/service-location-helper.js index b100a50b5..dfae12bba 100644 --- a/src/layouts/service-location/helpers/service-location-helper/service-location-helper.js +++ b/src/layouts/service-location/helpers/service-location-helper/service-location-helper.js @@ -62,11 +62,15 @@ export async function getAvailabilityRating( false ); + console.log(shopTimeSlots) + // Rate the availability for the shop let numberOfAppointmentsPerDay = []; for (let i = 0; i < shopTimeSlots.data.days.length; i++) { numberOfAppointmentsPerDay.push(shopTimeSlots.data.days[i].timeSlots.length); } + + console.log(numberOfAppointmentsPerDay) const dateRange = 7; const minimumNumberOfAppointmentsPerDay = 1; diff --git a/src/layouts/service-location/shop-question/shop-list-button/shop-list-button.vue b/src/layouts/service-location/shop-question/shop-list-button/shop-list-button.vue index df80fdffa..6eb34382e 100644 --- a/src/layouts/service-location/shop-question/shop-list-button/shop-list-button.vue +++ b/src/layouts/service-location/shop-question/shop-list-button/shop-list-button.vue @@ -73,10 +73,11 @@ export default { }, computed: { displayAvailabilityIndicators() { - return experimentMixin.methods.hasSettingEqualTo( - experimentSettings.DISPLAY_AVAILABILITY_INDICATORS, - "true" - ); + return true; //TODO: REMOVE THIS + // return experimentMixin.methods.hasSettingEqualTo( + // experimentSettings.DISPLAY_AVAILABILITY_INDICATORS, + // "true" + // ); }, isLoaderDisplayed() { return this.availabilityRating == null;