From 26035ab37daf732e20d2516c65df1a947552b013 Mon Sep 17 00:00:00 2001 From: AdamCaouetteSafelite Date: Thu, 10 Jul 2025 09:28:25 -0400 Subject: [PATCH] CASH-845 prettier fixes --- .../date-picker/date-picker.vue | 14 ++++++------- src/layouts/schedule/schedule.vue | 21 +++++++++++-------- 2 files changed, 18 insertions(+), 17 deletions(-) diff --git a/src/digital-components/date-picker/date-picker.vue b/src/digital-components/date-picker/date-picker.vue index 1156a2d54..bc3682cf0 100644 --- a/src/digital-components/date-picker/date-picker.vue +++ b/src/digital-components/date-picker/date-picker.vue @@ -482,14 +482,12 @@ export default { } const loadInitialDataPromise = new Promise((resolve, reject) => { - const response = config.getSelectableDatesCallback( - { - startDateString: initialViewStartDate, - endDateString: initialViewEndDate, - providerNumber: config.providerNumber, - zipCode: config.zipCode, - } - ); + const response = config.getSelectableDatesCallback({ + startDateString: initialViewStartDate, + endDateString: initialViewEndDate, + providerNumber: config.providerNumber, + zipCode: config.zipCode, + }); resolve(response); }); diff --git a/src/layouts/schedule/schedule.vue b/src/layouts/schedule/schedule.vue index 3efdfab03..630156827 100644 --- a/src/layouts/schedule/schedule.vue +++ b/src/layouts/schedule/schedule.vue @@ -257,7 +257,12 @@ const TIME_SLOTS_CALL_DAYS_LIMIT = 34; // needs to be 34 for API limits (35 does const NUMBER_OF_CALENDAR_ROWS_TO_SHOW_FOR_INITIAL_VIEW = 2; const MOBILE_FEE_PART_TYPE = "MOBILE FEE"; -const getScheduleApiResponse = async ({startDateString, endDateString, providerNumber, zipCode}) => { +const getScheduleApiResponse = async ({ + startDateString, + endDateString, + providerNumber, + zipCode, +}) => { const apiEndDateLimit = sumDateString(startDateString, TIME_SLOTS_CALL_DAYS_LIMIT); const difference = calcDaysBetweenDates(startDateString, endDateString); const apiCallsCount = Math.ceil(difference / TIME_SLOTS_CALL_DAYS_LIMIT); @@ -1205,14 +1210,12 @@ export default { }, async getMoreScheduleData(startDate, endDate) { // called only when "View more dates" is clicked; not on initial page load - const moreShopTimeSlots = await getScheduleApiResponse( - { - startDateString: startDate, - endDateString: endDate, - providerNumber: this.selectedProvider.providerNumber, - zipCode: this.zipCode, - } - ); + const moreShopTimeSlots = await getScheduleApiResponse({ + startDateString: startDate, + endDateString: endDate, + providerNumber: this.selectedProvider.providerNumber, + zipCode: this.zipCode, + }); // ADD API CALL RESULTS TO EXISTING DATE DATA this.selectableDatesInshop.days = this.selectableDatesInshop.days.concat(