Skip to content

Commit

Permalink
Ticket CV2-4351: Fixing fallback (should be an empty hash)
Browse files Browse the repository at this point in the history
  • Loading branch information
caiosba committed Mar 5, 2024
1 parent a34df53 commit eefb0c1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/models/concerns/team_rules.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit eefb0c1

Please sign in to comment.