Iker Narvaez

load recent results only they have if points calculated

...@@ -33,7 +33,7 @@ class ApplicationController < HeimdallEngine::ApplicationController ...@@ -33,7 +33,7 @@ class ApplicationController < HeimdallEngine::ApplicationController
33 def check_results 33 def check_results
34 return [] unless current_user 34 return [] unless current_user
35 current_user.bets.joins(:match).order('matches.date desc') 35 current_user.bets.joins(:match).order('matches.date desc')
36 - .where.not(result: nil) 36 + .where.not(points: nil)
37 .limit(5) 37 .limit(5)
38 end 38 end
39 end 39 end
......