Browse Source

Remove H2 tag from label if question is conditional

pull/491/head
baarkerlounger 3 years ago
parent
commit
88ab8cbb8a
  1. 4
      app/helpers/question_view_helper.rb

4
app/helpers/question_view_helper.rb

@ -20,6 +20,8 @@ private
end end
def label_tag(page_header, conditional) def label_tag(page_header, conditional)
page_header.blank? && !conditional ? "h1" : "h2" return "" if conditional
page_header.blank? ? "h1" : "h2"
end end
end end

Loading…
Cancel
Save