Skip to content

Commit 5ae9d80

Browse files
authored
Merge pull request #5588 from HSLdevcom/fix-schedules
Fix schedule page redirect
2 parents a94ce49 + 6e9a43a commit 5ae9d80

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

app/component/routepage/ScheduleContainer.js

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -824,7 +824,10 @@ class ScheduleContainer extends PureComponent {
824824
!DateTime.now().hasSame(firstDepartureDate, 'day')
825825
) {
826826
this.redirectWithServiceDay(firstDepartureDate);
827-
} else {
827+
} else if (
828+
!firstDepartureDate ||
829+
!DateTime.now().hasSame(firstDepartureDate, 'week')
830+
) {
828831
this.redirectWithServiceDay(nextMonday);
829832
}
830833
}

0 commit comments

Comments
 (0)