summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--app/views/matches/show.html.erb2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/views/matches/show.html.erb b/app/views/matches/show.html.erb
index 6be3481..16345ab 100644
--- a/app/views/matches/show.html.erb
+++ b/app/views/matches/show.html.erb
@@ -87,7 +87,7 @@
<% @match.teams.each do |team| %>
<% if team.users.include?(current_user) %>
<ol id="boxes" class="sortable">
- <% team.users.collect{|u| u.user_name}.each do |k| %>
+ <% team.users.reject { |u| (u.user_name == @current_user.user_name) }.collect {|u| u.user_name }.each do |k| %>
<li><%= k%>
<br>
<% if (@tournament.game_id == 1) %>