Skip to content

Commit

Permalink
Fix handle_info on campaign signup (#322)
Browse files Browse the repository at this point in the history
Handle messages we don't care about
  • Loading branch information
mveytsman authored Apr 16, 2024
1 parent 82b9da1 commit e298dc6
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion lib/bike_brigade_web/live/campaign_signup_live/index.ex
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,10 @@ defmodule BikeBrigadeWeb.CampaignSignupLive.Index do
end
end

@impl Phoenix.LiveView
@doc "silently ignore other kinds of messages"
def handle_info(_, socket), do: {:noreply, socket}

## -- End Delivery callbacks

defp apply_action(socket, :index, params) do
Expand Down Expand Up @@ -142,7 +146,7 @@ defmodule BikeBrigadeWeb.CampaignSignupLive.Index do
|> assign(:copy, copy)

~H"""
<p class="flex flex-col md:flex-row items-center mt-0 text-sm text-gray-700">
<p class="flex flex-col items-center mt-0 text-sm text-gray-700 md:flex-row">
<Icons.maki_bicycle_share class="flex-shrink-0 mb-2 mr-1.5 h-8 w-8 md:h-5 md:w-5 md:mb-0 text-gray-500" />
<span class="flex space-x-2 font-bold md:font-normal">
<span class={@class}><%= @copy %></span>
Expand Down

0 comments on commit e298dc6

Please sign in to comment.