From 25c9a1650e7dd9b302b1d47e4a33721d759c44b7 Mon Sep 17 00:00:00 2001 From: David Gay Date: Thu, 3 Jun 2021 21:48:36 -0400 Subject: Bazaar: Don't display own orders under "Buy Orders" or "Sell Orders" --- app/views/bazaar/index.html.erb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'app/views/bazaar') diff --git a/app/views/bazaar/index.html.erb b/app/views/bazaar/index.html.erb index 2ee433c..e41fb2c 100644 --- a/app/views/bazaar/index.html.erb +++ b/app/views/bazaar/index.html.erb @@ -77,7 +77,7 @@ - <% @bazaar_orders.where(buy_order: false).each do |bo| %> + <% @bazaar_orders.where(buy_order: false).where.not(character: current_char).each do |bo| %> <%= bo.item.name %> <%= bo.quantity %> @@ -109,7 +109,7 @@ - <% @bazaar_orders.where(buy_order: true).each do |bo| %> + <% @bazaar_orders.where(buy_order: true).where.not(character: current_char).each do |bo| %> <%= bo.item.name %> <%= bo.quantity %> -- cgit v1.2.3