Skip to content

Commit

Permalink
add safety operator for weird failure
Browse files Browse the repository at this point in the history
  • Loading branch information
compiledwrong authored and compiledwrong committed Apr 26, 2024
1 parent 99e2382 commit 98d3e2b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/presenters/case_contact_presenter.rb
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ def initialize(case_contacts)

def display_case_number(casa_case_id)
if casa_case_id
"#{casa_cases[casa_case_id].decorate.transition_aged_youth_icon} #{casa_cases[casa_case_id].case_number}"
"#{casa_cases[casa_case_id]&.decorate&.transition_aged_youth_icon} #{casa_cases[casa_case_id]&.case_number}"
else
""
end
Expand Down

0 comments on commit 98d3e2b

Please sign in to comment.