Issues with Scoreboard. Most things check out with dayjs besides that.

Signed-off-by: Dave Richer <dave@imexsystems.ca>
This commit is contained in:
Dave Richer
2023-12-13 19:46:37 -05:00
parent 65157a094f
commit a67fb3576c
3 changed files with 58 additions and 14 deletions

View File

@@ -58,10 +58,6 @@ export function FormDatePicker({
&& value
&& value.isValid
&& value.isValid()
&& typeof value.hours === 'function'
&& typeof value.minutes === 'function'
&& typeof value.seconds === 'function'
&& typeof value.milliseconds === 'function'
) {
_a.set({
hours: value.hours(),

View File

@@ -57,14 +57,6 @@ export const AsOfDateTargetHours = (dailyTargetHours, date) => {
);
};
export const ListOfBusinessDaysInCurrentMonth = () => {
// TODO This is probably broken :/
console.log('Hit!!!!')
const momentListOfDays = dayjs().businessDaysInMonth();
return momentListOfDays.map((i) => i.format("YYYY-MM-DD"));
};
export const ListOfDaysInCurrentMonth = () => {
const days = [];
const dateStart = dayjs().startOf("month");