From dbda73479d5005ee3e7d9591f76542ee782bf159 Mon Sep 17 00:00:00 2001 From: Adam Caouette Date: Thu, 1 Jun 2023 11:08:46 -0400 Subject: [PATCH] CSR-886: minor fixes (lets to consts) --- src/digital-components/date-picker/date-picker.vue | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/digital-components/date-picker/date-picker.vue b/src/digital-components/date-picker/date-picker.vue index 384f5f697..bc4d6318e 100644 --- a/src/digital-components/date-picker/date-picker.vue +++ b/src/digital-components/date-picker/date-picker.vue @@ -254,7 +254,7 @@ export default { const todayYearNum = todayDate.getFullYear(); // TODO - set up currentMonthStart if direction is PAST: // let currentMonthStart = new Date(todayYearNum, todayMonthIndex - 1, 1); - let currentMonthEnd = new Date(todayYearNum, todayMonthIndex, 0); + const currentMonthEnd = new Date(todayYearNum, todayMonthIndex, 0); let calendarViewDirection = "none"; if (config.selectableDatesSetting === "past") calendarViewDirection = "past"; @@ -288,7 +288,7 @@ export default { } } - let myPromise = new Promise((resolve, reject) => { + const myPromise = new Promise((resolve, reject) => { const response = config.customSelectableDatesCallback( initialViewStartDate.toISOString().split("T")[0], initialViewEndDate.toISOString().split("T")[0],