From 0e28b2115772b6e47f0f63569e3ccde6c1e12db7 Mon Sep 17 00:00:00 2001 From: baarkerlounger Date: Mon, 7 Feb 2022 12:26:49 +0000 Subject: [PATCH] Fix specs --- app/models/form/question.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/models/form/question.rb b/app/models/form/question.rb index d832865f3..267209e85 100644 --- a/app/models/form/question.rb +++ b/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" 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