Skip to content

Commit

Permalink
Fix smaller issues
Browse files Browse the repository at this point in the history
  • Loading branch information
roligheten committed Apr 3, 2022
1 parent c31d213 commit 7f9d1b9
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/Controller.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ const Controller = () => {
return vehicles;
}
return vehicles?.filter((vehicle) =>
filteredLineIds.includes(vehicle.line.id)
filteredLineIds.includes(vehicle?.line?.id)
);
}, [vehicles, filteredLineIds]);

Expand Down
2 changes: 1 addition & 1 deletion src/DelayIndicator.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ const DelayIndicator: FunctionalComponent<DelayIndicatorProps> = ({
}, [vehicles, setDelay]);

let delayText;
if (delay < 1) {
if (delay < 60) {
delayText = `${Math.round(delay)}s`;
} else {
const mins = Math.floor(delay / 60);
Expand Down

0 comments on commit 7f9d1b9

Please sign in to comment.