Skip to content

Commit

Permalink
Merge branch 'main' into deploy
Browse files Browse the repository at this point in the history
  • Loading branch information
davwheat committed Feb 13, 2024
2 parents 8a4ae24 + b8742ce commit 66f314c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/api/ProcessServices.ts
Original file line number Diff line number Diff line change
Expand Up @@ -118,10 +118,10 @@ class Service implements IMyTrainService {
displayedDepartureTime(): string {
if (this.cancelled) return 'Cancelled';
if (this.hasDeparted || this.hasArrived) return 'Arrived';
if (!this.estimatedDeparture) return 'Delayed';
if (!this.isDelayed()) return 'On time';
if (this.estimatedDeparture) return dayjs(this.estimatedDeparture).format('HH:mm');
if (this.scheduledDeparture) return dayjs(this.scheduledDeparture).format('HH:mm');
return 'Delayed';
return dayjs(this.scheduledDeparture).format('HH:mm');
}

constructor({
Expand Down

0 comments on commit 66f314c

Please sign in to comment.