From a67ef86dca6124d157a25b8fc4f73d4f5e4a65cf Mon Sep 17 00:00:00 2001 From: Malaber Date: Wed, 29 Jun 2022 22:48:54 +0200 Subject: [PATCH] Fix upcoming matches not returning for group stage --- app/controllers/matches_controller.rb | 2 ++ 1 file changed, 2 insertions(+) diff --git a/app/controllers/matches_controller.rb b/app/controllers/matches_controller.rb index e0813c9..ccbfe4b 100644 --- a/app/controllers/matches_controller.rb +++ b/app/controllers/matches_controller.rb @@ -26,6 +26,8 @@ class MatchesController < ApplicationController end end @tournament.stages.find_by(level: next_level).matches + else + upcoming_matches end else @tournament.matches.select do |m|