From f26d74aae542bc9a7f0fef089c1fb4e301ef7909 Mon Sep 17 00:00:00 2001 From: Polianin Nikita Date: Mon, 23 Dec 2024 05:15:35 +0300 Subject: [PATCH] refactor: change name arg --- src/pages/schedule/schedule.component.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/pages/schedule/schedule.component.ts b/src/pages/schedule/schedule.component.ts index a2d666c..a058a1c 100644 --- a/src/pages/schedule/schedule.component.ts +++ b/src/pages/schedule/schedule.component.ts @@ -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);