@ -150,7 +150,7 @@ class Competition < ApplicationRecord
end
def charts_count
competition_awards.pluck(:num)&.sum > 0 ? competition_awards.pluck(:num)&.sum : awards_count
competition_awards.pluck(:num)&.sum.to_i > 0 ? competition_awards.pluck(:num)&.sum.to_i : awards_count
def manager?(user)