Skip to content

Commit

Permalink
cleanup: Add fallback <.itinerary_panel /> in case the patterns don't…
Browse files Browse the repository at this point in the history
… match
  • Loading branch information
joshlarson committed Dec 2, 2024
1 parent 0064d31 commit bb42934
Showing 1 changed file with 8 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -103,6 +103,14 @@ defmodule DotcomWeb.Components.LiveComponents.TripPlannerResultsSection do
"""
end

defp itinerary_panel(assigns) do
inspect(assigns) |> Sentry.capture_message(tags: %{feature: "Trip Planner"})

~H"""
<div>Error loading planned trips</div>
"""
end

@impl true
def handle_event("set_expanded_itinerary_index", %{"index" => index_str}, socket) do
index =
Expand Down

0 comments on commit bb42934

Please sign in to comment.