Skip to content

Commit

Permalink
remove conditional for doc date field init
Browse files Browse the repository at this point in the history
  • Loading branch information
RyanEddyIC committed Jan 13, 2025
1 parent fd6439a commit 1cd3e80
Showing 1 changed file with 1 addition and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -37,11 +37,7 @@
<% url = @target.is_a?(Person) ? {} : employee_dependent_submission_options_for(@target) %>
'<%= form_for @target, url do |f| %>'
'<%= f.fields_for find_consumer_role_for_fields(f.object) do |c| %>'
<% if partial_target == "insured/consumer_roles/i_551_fields" %>
$(".vlp_doc_area").html("<%= escape_javascript(render partial: partial_target, locals: {c: c}) %>").ready(initExpirationDateField())
<% else %>
$(".vlp_doc_area").html("<%= escape_javascript(render partial: partial_target, locals: {c: c}) %>")
<% end %>
$(".vlp_doc_area").html("<%= escape_javascript(render partial: partial_target, locals: {c: c}) %>").ready(initExpirationDateField())
'<% end %>'
<% if EnrollRegistry[:enroll_app].setting(:verifiable_immigration_statuses).item %>
$(".vlp_doc_area").append("<%= escape_javascript(render partial: 'immigration_statuses', locals: {c: f}) %>")
Expand Down

0 comments on commit 1cd3e80

Please sign in to comment.