Skip to content

Commit 078bded

Browse files
committed
fix showing old predictions
1 parent b3ca1a6 commit 078bded

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

js/tracker.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -669,7 +669,7 @@ function launchSitePredictions(times, station, properties, marker) {
669669
date.setSeconds(0);
670670
date.setMilliseconds(0);
671671
date.setMinutes( date.getMinutes() - 45 );
672-
if (date < now) {
672+
while (date < now) {
673673
if (time[0] == 0) {
674674
date.setDate(date.getDate() + 1);
675675
} else {
@@ -861,7 +861,7 @@ function showLaunchSites() {
861861
date.setUTCMinutes(time[2]);
862862
date.setSeconds(0);
863863
date.setMinutes( date.getMinutes() - 45 );
864-
if (date < now) {
864+
while (date < now) {
865865
if (time[0] == 0) {
866866
date.setDate(date.getDate() + 1);
867867
} else {

0 commit comments

Comments
 (0)