diff --git a/frontend-angular/src/app/modules/admin/modules/users/modules/statistics/components/week-time-track/week-time-track.component.ts b/frontend-angular/src/app/modules/admin/modules/users/modules/statistics/components/week-time-track/week-time-track.component.ts index e0b032619..9fdf113da 100644 --- a/frontend-angular/src/app/modules/admin/modules/users/modules/statistics/components/week-time-track/week-time-track.component.ts +++ b/frontend-angular/src/app/modules/admin/modules/users/modules/statistics/components/week-time-track/week-time-track.component.ts @@ -141,7 +141,7 @@ export class WeekTimeTrackComponent { public isAllowNextMonth(): boolean { /// for December if (this.selectedMonth.add(1, 'month').month() === 0 ) { - return this.selectedMonth.month() <= dayjs().subtract(1, 'month').month() + return this.selectedMonth.month() <= dayjs().subtract(1, 'month').month(); } return this.selectedMonth.add(1, 'month').month() <= dayjs().month(); }