summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--app/views/tournaments/show.html.erb2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/views/tournaments/show.html.erb b/app/views/tournaments/show.html.erb
index 6b6cb25..1f24f39 100644
--- a/app/views/tournaments/show.html.erb
+++ b/app/views/tournaments/show.html.erb
@@ -61,7 +61,7 @@
<%= form_tag(tournaments_path.to_s + "/" + @tournament.id.to_s + "/edit", method: "get") do %>
<input type="hidden" name="close_action" value="close">
- <% if @tournament.players.count > @tournament.min_players_per_team * @tournament.min_teams_per_match %>
+ <% if @tournament.players.count >= @tournament.min_players_per_team * @tournament.min_teams_per_match %>
<%= submit_tag("Close Tournament Registration") %>
<% else %>
<%= submit_tag("Close Tournament Registration", disabled: true) %>