From fa98eeeb6edc5181991a75882f5f17032dbd7ba4 Mon Sep 17 00:00:00 2001 From: Elia Schito Date: Fri, 10 Nov 2023 18:30:45 +0100 Subject: [PATCH] Only show the number of complete order in the customer widget --- .../app/components/solidus_admin/orders/show/component.html.erb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/admin/app/components/solidus_admin/orders/show/component.html.erb b/admin/app/components/solidus_admin/orders/show/component.html.erb index b7ed900b9c9..b60fd503711 100644 --- a/admin/app/components/solidus_admin/orders/show/component.html.erb +++ b/admin/app/components/solidus_admin/orders/show/component.html.erb @@ -26,7 +26,7 @@
<%= customer_name(@order.user) || tag.span(t('.no_name'), class: "text-gray-500") %>
-
<%= t(".orders_count", count: @order.user.orders.count) %>
+
<%= t(".orders_count", count: @order.user.orders.complete.count) %>
<% end %>