Skip to content

Commit

Permalink
Rename variable
Browse files Browse the repository at this point in the history
  • Loading branch information
Dinssa committed Dec 16, 2024
1 parent 1c4e328 commit 41fa72a
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions app/models/form/question.rb
Original file line number Diff line number Diff line change
Expand Up @@ -245,11 +245,11 @@ def unanswered_error_message
end

def generate_check_answer_prompt
question_text = lowercase_first_letter(error_label.presence || check_answer_label.presence || header.presence || id.humanize) || "this question."
return "Select #{question_text}" if %w[checkbox radio select].include?(type)
return "Set #{question_text}" if type == "date"
prompt_ending = lowercase_first_letter(error_label.presence || check_answer_label.presence || header.presence || id.humanize) || "this question."
return "Select #{prompt_ending}" if %w[checkbox radio select].include?(type)
return "Set #{prompt_ending}" if type == "date"

"Enter #{question_text}"
"Enter #{prompt_ending}"
end

def suffix_label(log)
Expand Down

0 comments on commit 41fa72a

Please sign in to comment.