mirror of
https://github.com/Tria-plc/edr-platform.git
synced 2026-09-08 20:38:17 +00:00
freight_feature/usermanagement
This commit is contained in:
@@ -59,7 +59,7 @@ function trainDeparted(train: Freight.ClearanceView["train"] | undefined): strin
|
||||
function trainArrived(train: Freight.ClearanceView["train"] | undefined): string | null {
|
||||
return train?.scheduleArrivedAt ?? train?.arrivedAt ?? null;
|
||||
}
|
||||
|
||||
//
|
||||
function trainLegDescription(train: Freight.ClearanceView["train"] | undefined): string {
|
||||
const arrived = trainArrived(train);
|
||||
if (arrived) return `Arrived ${formatStamp(arrived)}`;
|
||||
|
||||
Reference in New Issue
Block a user