From 2a5c72b2a78bf0a0bf780a1ea2960a3740d15685 Mon Sep 17 00:00:00 2001 From: Marius Peter Date: Wed, 1 Jan 2025 17:57:08 +0100 Subject: Small scoring service update. --- app/services/tartiflette_scoring_service.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/services/tartiflette_scoring_service.rb b/app/services/tartiflette_scoring_service.rb index 2c12025..6df2f0c 100644 --- a/app/services/tartiflette_scoring_service.rb +++ b/app/services/tartiflette_scoring_service.rb @@ -1,7 +1,7 @@ class TartifletteScoringService def self.scored?(tartiflette, session) session[:scored_tartiflettes] ||= [] - session[:scored_tartiflettes]&.include?(tartiflette.id) + session[:scored_tartiflettes].include?(tartiflette.id) end def self.mark_as_scored(tartiflette, session) -- cgit v1.2.3