Skip to content

Commit

Permalink
PRIM-2369 - Yes and No not included in IR export for legal action que…
Browse files Browse the repository at this point in the history
…stion
  • Loading branch information
aespinoza-quoin committed Oct 30, 2020
1 parent 93531aa commit 929ff87
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions app/models/exporters/incident_recorder_exporter.rb
Expand Up @@ -338,11 +338,11 @@ def props
if legal_counseling.present?
legal_actions = legal_counseling.
map{|l| l.try(:pursue_legal_action)}
if legal_actions.include? true
if legal_actions.include?('true')
I18n.t("exports.incident_recorder_xls.yes")
elsif legal_actions.include? false
elsif legal_actions.include?('false')
I18n.t("exports.incident_recorder_xls.no")
elsif legal_actions.include? nil
else
I18n.t("exports.incident_recorder_xls.service_referral.undecided")
end
end
Expand Down

0 comments on commit 929ff87

Please sign in to comment.