Browse Source

Fix specs

pull/273/head
baarkerlounger 3 years ago committed by MadeTech Dushan
parent
commit
0e28b21157
  1. 2
      app/models/form/question.rb

2
app/models/form/question.rb

@ -39,7 +39,7 @@ class Form::Question
return case_log[id]&.to_formatted_s(:govuk_date).to_s if type == "date" return case_log[id]&.to_formatted_s(:govuk_date).to_s if type == "date"
answer = case_log[id].to_s if case_log[id].present? answer = case_log[id].to_s if case_log[id].present?
answer_label = [prefix, format_value(answer), suffix_label(case_log)].join("") answer_label = [prefix, format_value(answer), suffix_label(case_log)].join("") if answer
return answer_label if answer_label return answer_label if answer_label

Loading…
Cancel
Save