Skip to content

Commit

Permalink
Handle missing case
Browse files Browse the repository at this point in the history
  • Loading branch information
LeticiaErrandonea committed Mar 5, 2025
1 parent 1f31c23 commit 6f69334
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions app/services/order_details/param_updater.rb
Original file line number Diff line number Diff line change
Expand Up @@ -110,6 +110,8 @@ def cost_params(params)

if !@order_detail.awaiting_payment? || @editing_user.global_billing_administrator?
params.slice(:actual_cost, :actual_subsidy).permit!
else
{}
end
end

Expand Down

0 comments on commit 6f69334

Please sign in to comment.