From d6340bb6d6a8f86d113b7ac5fa0f4ad38287c761 Mon Sep 17 00:00:00 2001 From: p31729568 Date: Fri, 28 Jun 2019 14:13:50 +0800 Subject: [PATCH] fix competition eroll page --- app/views/competitions/enroll.html.erb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/views/competitions/enroll.html.erb b/app/views/competitions/enroll.html.erb index 8dcabc56..8aeb3b45 100644 --- a/app/views/competitions/enroll.html.erb +++ b/app/views/competitions/enroll.html.erb @@ -59,7 +59,7 @@
<% if @is_enroll.present? %>
- <% if @competition.max_num > 1 %> + <% if @competition.competition_staffs.sum(:maximum) > 1 %>
<% @is_enroll.each do |team| %>