Skip to content

Commit aee686e

Browse files
authored
Merge pull request #5587 from HSLdevcom/fix-schedules
Fix schedule page not showing current week
2 parents e8999c5 + d7612c6 commit aee686e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

app/component/routepage/ScheduleContainer.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -818,7 +818,7 @@ class ScheduleContainer extends PureComponent {
818818
if ((!this.testNum || this.testNum !== 0) && isBeforeFirstDataDate) {
819819
this.redirectWithServiceDay(firstDataDate);
820820
} else if ((isBeforeNextWeek && firstWeekEmpty) || firstDepartureDate) {
821-
if (!isSameOrAfterNextWeek) {
821+
if (wantedDay && !isSameOrAfterNextWeek) {
822822
if (
823823
firstDepartureDate &&
824824
!DateTime.now().hasSame(firstDepartureDate, 'day')

0 commit comments

Comments
 (0)