diff --git a/app/views/idv/doc_auth/document_capture.html.erb b/app/views/idv/doc_auth/document_capture.html.erb index f62654e3c19..7218a4d6f24 100644 --- a/app/views/idv/doc_auth/document_capture.html.erb +++ b/app/views/idv/doc_auth/document_capture.html.erb @@ -108,17 +108,15 @@ <%= javascript_pack_tag 'image-preview' %> <%= render 'idv/doc_auth/start_over_or_cancel' %> - <% unless Figaro.env.document_capture_react_enabled == 'false' %> - <%= nonced_javascript_tag do %> - <% asset_keys = [ - 'close-white-alt.svg', - 'id-card.svg', - 'spinner.gif', - 'spinner@2x.gif' - ] %> - window.LoginGov = window.LoginGov || {}; - window.LoginGov.assets = <%= raw asset_keys.map { |key| [key, asset_path(key)] }.to_h.to_json %>; - <% end %> - <%= javascript_pack_tag 'document-capture' %> + <%= nonced_javascript_tag do %> + <% asset_keys = [ + 'close-white-alt.svg', + 'id-card.svg', + 'spinner.gif', + 'spinner@2x.gif' + ] %> + window.LoginGov = window.LoginGov || {}; + window.LoginGov.assets = <%= raw asset_keys.map { |key| [key, asset_path(key)] }.to_h.to_json %>; <% end %> + <%= javascript_pack_tag 'document-capture' %> <% end %> diff --git a/config/application.yml.default b/config/application.yml.default index 1fb9f7c13cd..f6ea9890736 100644 --- a/config/application.yml.default +++ b/config/application.yml.default @@ -48,7 +48,6 @@ disallow_ial2_recovery: doc_capture_request_valid_for_minutes: '15' doc_auth_extend_timeout_by_minutes: '40' document_capture_step_enabled: 'false' -document_capture_react_enabled: 'true' email_from: no-reply@login.gov email_from_display_name: Login.gov enable_load_testing_mode: 'false' diff --git a/spec/features/idv/doc_auth/document_capture_step_spec.rb b/spec/features/idv/doc_auth/document_capture_step_spec.rb index 47d48258312..6ec5a41467f 100644 --- a/spec/features/idv/doc_auth/document_capture_step_spec.rb +++ b/spec/features/idv/doc_auth/document_capture_step_spec.rb @@ -10,7 +10,6 @@ let(:liveness_enabled) { 'false' } let(:fake_analytics) { FakeAnalytics.new } before do - allow(Figaro.env).to receive(:document_capture_react_enabled).and_return('false') allow(Figaro.env).to receive(:document_capture_step_enabled). and_return(document_capture_step_enabled) allow(Figaro.env).to receive(:liveness_checking_enabled).