diff --git a/lib/dotcom_web/templates/schedule/_stop_list_expand_link.html.eex b/lib/dotcom_web/templates/schedule/_stop_list_expand_link.html.eex index d3424d9630..99d8e7b074 100644 --- a/lib/dotcom_web/templates/schedule/_stop_list_expand_link.html.eex +++ b/lib/dotcom_web/templates/schedule/_stop_list_expand_link.html.eex @@ -24,7 +24,7 @@ Ride the <%= @branch_display %> (<%= intermediate_stop_count %> <%= stop_string %>, <%= duration_minutes %> min)
- <%= if @itenerary_row.trip != nil %> + <%= if @itenerary_row.trip != nil do %> <% headsign = Access.get(@itinerary_row.trip, :headsign, "") %> <% headsign = if headsign == "", do: "", else: "towards #{headsign}" %> <%= Routes.Route.direction_name(@route, @itinerary_row.trip.direction_id) %> <%= headsign %>