diff options
author | Marius Peter <marius.peter@tutanota.com> | 2025-01-01 17:57:08 +0100 |
---|---|---|
committer | Marius Peter <marius.peter@tutanota.com> | 2025-01-01 17:57:08 +0100 |
commit | 2a5c72b2a78bf0a0bf780a1ea2960a3740d15685 (patch) | |
tree | 139cdd64ba88b8ef7141919426beeaf1b7cef899 | |
parent | 7606db6e9b5a149cf23971c513283874b517ff0e (diff) |
Small scoring service update.
-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) |