Remove useless setting of payment amount

It gets overridden later anyway.
This commit is contained in:
Maikel Linke
2026-02-17 13:38:41 +11:00
parent dff9d7ede6
commit ce96b58800

View File

@@ -14,7 +14,6 @@ module Checkout
apply_strong_parameters
set_pickup_address
set_address_details
set_payment_amount
set_existing_card
@order_params
@@ -58,12 +57,6 @@ module Checkout
end
end
def set_payment_amount
return unless @order_params[:payments_attributes]
@order_params[:payments_attributes].first[:amount] = order.outstanding_balance.amount
end
def set_existing_card
return unless existing_card_selected?