Skip to content

Commit

Permalink
correct params strcuture for form submission (#16247)
Browse files Browse the repository at this point in the history
* correct params strcuture for form submission

* update form params to be correct values
  • Loading branch information
s-caso authored Apr 8, 2024
1 parent 57d14ca commit ad95440
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions modules/meb_api/lib/dgi/forms/service/submission_service.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
4 changes: 2 additions & 2 deletions modules/meb_api/lib/dgi/submission/service.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit ad95440

Please sign in to comment.