We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 700853d commit a5bc665Copy full SHA for a5bc665
1 file changed
frontend/src/ts/elements/test-activity.ts
@@ -43,7 +43,7 @@ export function init(
43
return;
44
}
45
46
- calendar ??= new TestActivityCalendar(
+ calendar = new TestActivityCalendar(
47
testActivityData.testsByDays,
48
new Date(testActivityData.lastDay),
49
getFirstDayOfTheWeek(),
@@ -79,8 +79,6 @@ function update(
79
80
81
82
- let calendarToShow = calendar;
83
-
84
container.innerHTML = "";
85
86
if (calendar === undefined) {
@@ -90,6 +88,7 @@ function update(
90
88
91
89
92
+ let calendarToShow: TestActivityCalendar;
93
if (fullYear) {
94
calendarToShow = calendar.getFullYearCalendar();
95
} else {
0 commit comments