From eefb0c1eda2e7056ab7a3021a6a81d8a3ed992a6 Mon Sep 17 00:00:00 2001 From: Caio <117518+caiosba@users.noreply.github.com> Date: Tue, 5 Mar 2024 16:31:35 -0300 Subject: [PATCH] Ticket CV2-4351: Fixing fallback (should be an empty hash) --- app/models/concerns/team_rules.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/models/concerns/team_rules.rb b/app/models/concerns/team_rules.rb index ec20105ae5..a2b0a4624a 100644 --- a/app/models/concerns/team_rules.rb +++ b/app/models/concerns/team_rules.rb @@ -50,7 +50,7 @@ def text_contains_keyword(text, value) def get_smooch_message(pm) smooch_message = pm.smooch_message - smooch_message.nil? ? pm.tipline_requests.last&.smooch_data : smooch_message + smooch_message.nil? ? pm.tipline_requests.last&.smooch_data.to_h : smooch_message end def title_matches_regexp(pm, value, _rule_id)