Skip to content

Commit

Permalink
Fix how we display counts on signup (#374)
Browse files Browse the repository at this point in the history
  • Loading branch information
mveytsman authored May 23, 2024
1 parent cbace17 commit fcd8360
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions lib/bike_brigade_web/live/campaign_signup_live/show.ex
Original file line number Diff line number Diff line change
Expand Up @@ -185,13 +185,11 @@ defmodule BikeBrigadeWeb.CampaignSignupLive.Show do
defp get_delivery_size(assigns) do
~H"""
<div :for={task_item <- @task.task_items} class="flex items-center">
<span :if={task_item.count > 1}> task_item.count </span>
<%= if task_item.item.description && task_item.item.description != "" do %>
<div class="flex items-center">
<details>
<summary class="cursor-pointer" title={task_item.item.description}>
<%= Inflex.inflect(task_item.item.name, task_item.count) %>
<span :if={task_item.count > 1} class="mr-1"> <%= task_item.count %></span><%= Inflex.inflect(task_item.item.name, task_item.count) %>
</summary>
<%= task_item.item.description %>
</details>
Expand Down

0 comments on commit fcd8360

Please sign in to comment.