Skip to content

Commit

Permalink
fix lint
Browse files Browse the repository at this point in the history
  • Loading branch information
Mikhail.Moshnikov authored and Mikhail.Moshnikov committed Dec 7, 2022
1 parent 9b728be commit e9744a6
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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();
}
Expand Down

0 comments on commit e9744a6

Please sign in to comment.