From 0928ac3e1a87361fb5f73d279135412a988fdbe6 Mon Sep 17 00:00:00 2001 From: Josh Larson Date: Thu, 9 Jan 2025 10:54:05 -0500 Subject: [PATCH] cleanup: Replace if statement with :if directive in <.itinerary_summary /> (#2315) --- .../components/trip_planner/itinerary_summary.ex | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/lib/dotcom_web/components/trip_planner/itinerary_summary.ex b/lib/dotcom_web/components/trip_planner/itinerary_summary.ex index dd9c505b1c..4a115dd877 100644 --- a/lib/dotcom_web/components/trip_planner/itinerary_summary.ex +++ b/lib/dotcom_web/components/trip_planner/itinerary_summary.ex @@ -98,9 +98,12 @@ defmodule DotcomWeb.Components.TripPlanner.ItinerarySummary do
<%= for {route, index} <- Enum.with_index(@routes) do %> <.route_symbol route={route} class={"#{@grouped_classes} #{zindex(index)} #{@class}"} /> - <%= if @slashed? and index < Kernel.length(@routes) - 1 do %> -
- <% end %> + +
+
<% end %>
"""