From d05dd4a79c7b39c396601c9c4c923fbf064403ed Mon Sep 17 00:00:00 2001 From: baarkerlounger Date: Mon, 7 Feb 2022 14:18:50 +0000 Subject: [PATCH] Fix spec --- app/models/form/question.rb | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/app/models/form/question.rb b/app/models/form/question.rb index 9be3d1680..24575a374 100644 --- a/app/models/form/question.rb +++ b/app/models/form/question.rb @@ -78,9 +78,6 @@ class Form::Question else case_log[id].blank? ? "Answer" : "Change" end - if id == "earnings" - link_type = case_log[id].blank? || case_log["incfreq"].blank? ? "Answer" : "Change" - end "#{link_type} #{check_answer_label.to_s.downcase}".html_safe end @@ -118,7 +115,7 @@ private answer = case_log.send(condition.keys.first) if answer == condition.values.first - label = ANSWER_SUFFIX_LABELS.key?(answer) ? ANSWER_SUFFIX_LABELS[answer] : answer + label = ANSWER_SUFFIX_LABELS.key?(answer.to_sym) ? ANSWER_SUFFIX_LABELS[answer.to_sym] : answer end end label