diff options
Diffstat (limited to 'app/services/tartiflette_scoring_service.rb')
-rw-r--r-- | app/services/tartiflette_scoring_service.rb | 2 |
1 files changed, 1 insertions, 1 deletions
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) |