Skip to content

Commit

Permalink
fix: badge redeem page (#537)
Browse files Browse the repository at this point in the history
  • Loading branch information
nunom27 authored Feb 14, 2025
1 parent 074071f commit f6a91ff
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion lib/safira_web/live/backoffice/attendee_live/index.ex
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ defmodule SafiraWeb.Backoffice.AttendeeLive.Index do

@impl true
def handle_params(params, _, socket) do
case Accounts.list_attendees(params, order_by: [desc: :inserted_at]) do
case Accounts.list_attendees(params) do
{:ok, {attendees, meta}} ->
{:noreply,
socket
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -45,16 +45,16 @@ defmodule SafiraWeb.Backoffice.BadgeLive.RedeemLive.Index do
</div>
</:col>
<:col :let={{_id, redeem}} field={:redeemed_by} label="Redeemed by">
<%= redeem.redeemed_by.user.name %>
<%= if redeem.redeemed_by, do: redeem.redeemed_by.user.name, else: "System / Company" %>
</:col>
<:col :let={{_id, redeem}} sortable field={:inserted_at} label="Redeemed at">
<%= datetime_to_string(redeem.inserted_at) %>
</:col>
<:action :let={{id, speaker}}>
<:action :let={{id, redeem}}>
<div class="flex flex-row gap-2">
<.link
phx-click={
JS.push("delete", value: %{id: speaker.id}, target: @myself) |> hide("##{id}")
JS.push("delete", value: %{id: redeem.id}, target: @myself) |> hide("##{id}")
}
data-confirm="Are you sure?"
>
Expand Down

0 comments on commit f6a91ff

Please sign in to comment.