diff --git a/modules/meb_api/lib/dgi/forms/service/submission_service.rb b/modules/meb_api/lib/dgi/forms/service/submission_service.rb index 0f369b477b3..8adae906f53 100644 --- a/modules/meb_api/lib/dgi/forms/service/submission_service.rb +++ b/modules/meb_api/lib/dgi/forms/service/submission_service.rb @@ -53,9 +53,9 @@ def update_dd_params(params, dd_params) params[:form][:direct_deposit][:direct_deposit_account_number] = dd_params[:dposit_acnt_nbr] params[:form][:direct_deposit][:direct_deposit_routing_number] = dd_params[:routng_trnsit_nbr] elsif check_masking && Flipper.enabled?(:toe_light_house_dgi_direct_deposit, @current_user) - params[:form][:direct_deposit][:account_number] = + params[:form][:direct_deposit][:direct_deposit_account_number] = dd_params&.payment_account ? dd_params.payment_account[:account_number] : nil - params[:form][:direct_deposit][:routing_number] = + params[:form][:direct_deposit][:direct_deposit_routing_number] = dd_params&.payment_account ? dd_params.payment_account[:routing_number] : nil end params diff --git a/modules/meb_api/lib/dgi/submission/service.rb b/modules/meb_api/lib/dgi/submission/service.rb index 26c001c5a22..85b91d8482c 100644 --- a/modules/meb_api/lib/dgi/submission/service.rb +++ b/modules/meb_api/lib/dgi/submission/service.rb @@ -54,9 +54,9 @@ def update_dd_params(params, dd_params) check_masking = account_number&.include?('*') if check_masking && Flipper.enabled?(:show_dgi_direct_deposit_1990EZ, @current_user) - params[:direct_deposit][:account_number] = + params[:direct_deposit][:direct_deposit_account_number] = dd_params&.payment_account ? dd_params.payment_account[:account_number] : nil - params[:direct_deposit][:routing_number] = + params[:direct_deposit][:direct_deposit_routing_number] = dd_params&.payment_account ? dd_params.payment_account[:routing_number] : nil end