Skip to content

Commit

Permalink
Don't replay 'none' option on courses selected
Browse files Browse the repository at this point in the history
  • Loading branch information
kenfodder committed Jul 22, 2024
1 parent 70acac2 commit 5f98142
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,9 @@ def save
private

def course_descriptions(course_field)
journey_session.answers.public_send(course_field).map { |course|
journey_session.answers.public_send(course_field).reject { |course|
course == "none"
}.map { |course|
course_option_description(course, i18n_form_namespace: course_field).html_safe
}
end
Expand Down

0 comments on commit 5f98142

Please sign in to comment.