Update index.html
1 file changed+11−1
index.html+11−1View file
| @@ -2172,12 +2172,22 @@ | ||
| } | ||
| const existing = existingMap[dStr]; | ||
| + let workAmount = 0; | ||
| + if (existing) { | ||
| + if (existing.workAmount !== undefined && existing.workAmount !== null) { | ||
| + workAmount = Number(existing.workAmount); | ||
| + } else if (existing.worked) { | ||
| + workAmount = 1.0; | ||
| + } | ||
| + } | ||
| + | ||
| activeEditorDays.push({ | ||
| date: dStr, | ||
| dayOfWeek, | ||
| isWeekend, | ||
| inRange, | ||
| - worked: existing ? !!existing.worked : false, | ||
| + workAmount: workAmount, | ||
| + worked: workAmount > 0, | ||
| details: existing ? (existing.details || '') : '', | ||
| meetingDurationMinutes: existing ? (existing.meetingDurationMinutes || 0) : 0 | ||
| }); | ||