Neorientovat se dle datumu klienta
This commit is contained in:
1 parent
8ec87ec200
commit
3a357f077f
3 files changed
+9
-14
No files matched your search
@@ -32,7 +32,7 @@ export const getDateForWeekIndex = (index: number) => {
|
||||
/** Vrátí "prázdná" (implicitní) data pro předaný den. */
|
||||
function getEmptyData(date?: Date): ClientData {
|
||||
const usedDate = date || getToday();
|
||||
return { date: getHumanDate(usedDate), isWeekend: getIsWeekend(usedDate), weekIndex: getDayOfWeekIndex(usedDate), choices: {} };
|
||||
return { date: getHumanDate(usedDate), isWeekend: getIsWeekend(usedDate), weekIndex: getDayOfWeekIndex(usedDate), todayWeekIndex: getDayOfWeekIndex(getToday()), choices: {} };
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in new issue
Block a user