From acb5c8f4f87865435920f5275db1230d3c4a19b5 Mon Sep 17 00:00:00 2001 From: MadeTech Dushan Date: Fri, 1 Oct 2021 15:16:55 +0100 Subject: [PATCH] improve clarity --- app/helpers/check_answers_helper.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/helpers/check_answers_helper.rb b/app/helpers/check_answers_helper.rb index a61dd31c2..4fd46ce9d 100644 --- a/app/helpers/check_answers_helper.rb +++ b/app/helpers/check_answers_helper.rb @@ -21,7 +21,7 @@ module CheckAnswersHelper def create_next_missing_question_link(case_log_id, subsection_pages, case_log) pages_to_fill_in = [] subsection_pages.each do |page_title, page_info| - page_info["questions"].any? { |_q| case_log["q"].blank? } + page_info["questions"].any? { |question| case_log[question].blank? } pages_to_fill_in << page_title end url = "/case_logs/#{case_log_id}/#{pages_to_fill_in.first}"