Skip to content

Commit

Permalink
Only show the number of complete order in the customer widget
Browse files Browse the repository at this point in the history
  • Loading branch information
elia committed Nov 10, 2023
1 parent 9762fde commit fa98eee
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
<div class="flex flex-col gap-2">
<div class="body-small-bold"><%= customer_name(@order.user) || tag.span(t('.no_name'), class: "text-gray-500") %></div>
<div class="body-small body-link"><%= link_to @order.user.email, spree.admin_user_path(@order.user) %></div>
<div class="body-small text-gray-500"><%= t(".orders_count", count: @order.user.orders.count) %></div>
<div class="body-small text-gray-500"><%= t(".orders_count", count: @order.user.orders.complete.count) %></div>
</div>
<% end %>

Expand Down

0 comments on commit fa98eee

Please sign in to comment.