Skip to content

Commit

Permalink
fix live bar shows non-finished heats as finished
Browse files Browse the repository at this point in the history
  • Loading branch information
konrad2002 committed Oct 26, 2024
1 parent a0a6a64 commit 1201b48
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/app/shared/layout/live-bar/live-bar.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -65,8 +65,9 @@ export class LiveBarComponent implements OnInit, OnDestroy {
let finish = this.currentHeat.getFinishedAt(); // to check how long it is over and how much time until next
let current = this.currentHeat.getStartDelayEstimation(); // to compare dates of current and next


if (finish.getTime() > 1000) { // current heat is over
console.log(finish.getTime())
console.log(finish.getUTCFullYear())
if (finish.getUTCFullYear() > 2010) { // current heat is over
let d = now.getTime() - finish.getTime();

if (d > 1 * 60 * 1000) { // current heat is over for more than 1 minute
Expand Down

0 comments on commit 1201b48

Please sign in to comment.