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)