Skip to content

Commit 85a7213

Browse files
committed
td
1 parent 05671ad commit 85a7213

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

weekdays.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -239,7 +239,7 @@ <h3>Friday</h3>
239239
let n = 0;
240240
let t = 0;
241241
while (td <= endDate) {
242-
const isFridayButNotLastDay = currentDate.getDay() === 5 && currentDate < endDate;
242+
const isFridayButNotLastDay = currentDate.getDay() === 5 && td < endDate;
243243
if (isWeekday(td) && !isFridayButNotLastDay) {
244244
t++;
245245
}

0 commit comments

Comments
 (0)