Browse Source

improve clarity

pull/25/head
MadeTech Dushan 3 years ago
parent
commit
acb5c8f4f8
  1. 2
      app/helpers/check_answers_helper.rb

2
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}"

Loading…
Cancel
Save