summaryrefslogtreecommitdiff
path: root/app/views/bazaar/index.html.erb
diff options
context:
space:
mode:
authorDavid Gay <david@davidgay.org>2021-06-03 21:48:36 -0400
committerDavid Gay <david@davidgay.org>2021-06-03 21:48:36 -0400
commit25c9a1650e7dd9b302b1d47e4a33721d759c44b7 (patch)
tree9ffdbe6221395b8ba323d82504c1a51c615b4f63 /app/views/bazaar/index.html.erb
parent07ad9fc5c16f22adab89575fb41635953e6a466d (diff)
Bazaar: Don't display own orders under "Buy Orders" or "Sell Orders"
Diffstat (limited to 'app/views/bazaar/index.html.erb')
-rw-r--r--app/views/bazaar/index.html.erb4
1 files changed, 2 insertions, 2 deletions
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 @@
</tr>
</thead>
<tbody>
- <% @bazaar_orders.where(buy_order: false).each do |bo| %>
+ <% @bazaar_orders.where(buy_order: false).where.not(character: current_char).each do |bo| %>
<tr>
<td class="table-cell-padded"><%= bo.item.name %></td>
<td class="table-cell-padded"><%= bo.quantity %></td>
@@ -109,7 +109,7 @@
</tr>
</thead>
<tbody>
- <% @bazaar_orders.where(buy_order: true).each do |bo| %>
+ <% @bazaar_orders.where(buy_order: true).where.not(character: current_char).each do |bo| %>
<tr>
<td class="table-cell-padded"><%= bo.item.name %></td>
<td class="table-cell-padded"><%= bo.quantity %></td>