refactor: change name arg

This commit is contained in:
Polianin Nikita 2024-12-23 05:15:35 +03:00
parent 3aefee124a
commit f26d74aae5

View File

@ -130,10 +130,10 @@ export class ScheduleComponent {
this.startWeek = this.startTerm;
}
protected handleWeekEvent(eventData: boolean | null) {
if (eventData === null) {
protected handleWeekEvent(forward: boolean | null) {
if (forward === null) {
this.calculateCurrentWeek();
} else if (eventData) {
} else if (forward) {
this.startWeek = addDays(this.startWeek, 7);
} else {
this.startWeek = addDays(this.startWeek, -7);