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; this.startWeek = this.startTerm;
} }
protected handleWeekEvent(eventData: boolean | null) { protected handleWeekEvent(forward: boolean | null) {
if (eventData === null) { if (forward === null) {
this.calculateCurrentWeek(); this.calculateCurrentWeek();
} else if (eventData) { } else if (forward) {
this.startWeek = addDays(this.startWeek, 7); this.startWeek = addDays(this.startWeek, 7);
} else { } else {
this.startWeek = addDays(this.startWeek, -7); this.startWeek = addDays(this.startWeek, -7);