Skip to content

Commit a5bc665

Browse files
committed
fix
1 parent 700853d commit a5bc665

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

frontend/src/ts/elements/test-activity.ts

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ export function init(
4343
return;
4444
}
4545

46-
calendar ??= new TestActivityCalendar(
46+
calendar = new TestActivityCalendar(
4747
testActivityData.testsByDays,
4848
new Date(testActivityData.lastDay),
4949
getFirstDayOfTheWeek(),
@@ -79,8 +79,6 @@ function update(
7979
return;
8080
}
8181

82-
let calendarToShow = calendar;
83-
8482
container.innerHTML = "";
8583

8684
if (calendar === undefined) {
@@ -90,6 +88,7 @@ function update(
9088
return;
9189
}
9290

91+
let calendarToShow: TestActivityCalendar;
9392
if (fullYear) {
9493
calendarToShow = calendar.getFullYearCalendar();
9594
} else {

0 commit comments

Comments
 (0)