Skip to content

Commit

Permalink
Fix #598: Correct number of working days on flexible calendar (#607)
Browse files Browse the repository at this point in the history
  • Loading branch information
araujoarthur0 authored Jan 10, 2021
1 parent c11e28b commit 2f74572
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions js/classes/FlexibleMonthCalendar.js
Original file line number Diff line number Diff line change
Expand Up @@ -535,6 +535,7 @@ class FlexibleMonthCalendar extends BaseCalendar
}
else
{
workingDays += 1;
this._setTableData(dateKey);
this._colorErrorLine(dateKey);
}
Expand All @@ -549,8 +550,6 @@ class FlexibleMonthCalendar extends BaseCalendar
{
monthTotal = sumTime(monthTotal, dayTotal);
}

workingDays += 1;
}
let monthDayInput = $('#month-day-input');
if (monthDayInput)
Expand Down

0 comments on commit 2f74572

Please sign in to comment.