Skip to content

Commit

Permalink
Always read out train headsigns.
Browse files Browse the repository at this point in the history
  • Loading branch information
cmaddox5 committed Sep 9, 2024
1 parent bae5a94 commit 901a6df
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions lib/screens_web/views/v2/audio/departures_view.ex
Original file line number Diff line number Diff line change
Expand Up @@ -64,8 +64,14 @@ defmodule ScreensWeb.V2.Audio.DeparturesView do
~E|<s><%= content %></s>|
end

defp render_time_with_crowding({%{crowding: crowding, time: time}, _}, route, _headsign) do
route_headsign_rendered = render_route_headsign(route, nil)
defp render_time_with_crowding({%{crowding: crowding, time: time}, _}, route, headsign) do
route_headsign_rendered =
if route.vehicle_type == :train do
render_route_headsign(route, headsign)
else
render_route_headsign(route, nil)
end

crowding_rendered = render_crowding_level(crowding)
preposition = preposition_for_time_type(time.type)

Expand Down

0 comments on commit 901a6df

Please sign in to comment.