diff --git a/app/models/match.rb b/app/models/match.rb index db55459..64592c6 100644 --- a/app/models/match.rb +++ b/app/models/match.rb @@ -48,8 +48,7 @@ class Match < ApplicationRecord end def group_points_of(team) - return 0 unless finished? || in_progress? - return 0 unless teams.include?(team) + return 0 unless (finished? || in_progress?) && teams.include?(team) case current_leading_team when team