CSR-886: minor fixes (lets to consts)

This commit is contained in:
Adam Caouette 2023-06-01 11:08:46 -04:00
parent 6a6b37d5e7
commit dbda73479d

View file

@ -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],