Skip to content

Commit

Permalink
fix: calendar day view range
Browse files Browse the repository at this point in the history
  • Loading branch information
pateljannat committed Dec 13, 2023
1 parent ae4aadb commit 67dfffd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lms/www/batches/batch.js
Original file line number Diff line number Diff line change
Expand Up @@ -812,7 +812,7 @@ const set_calendar_range = (calendar, events) => {
);
$(".calendar-range").text(`${calendar_date}`);

if (moment(events[0].date).isSameOrBefore(moment(calendar)))
if (moment(calendar_date).isSameOrBefore(moment(events[0].date)))
$("#prev-week").hide();
else $("#prev-week").show();

Expand Down

0 comments on commit 67dfffd

Please sign in to comment.