diff --git a/app/controllers/split_checkout_controller.rb b/app/controllers/split_checkout_controller.rb index 8707c74727..7f5ff145dc 100644 --- a/app/controllers/split_checkout_controller.rb +++ b/app/controllers/split_checkout_controller.rb @@ -63,7 +63,7 @@ class SplitCheckoutController < ::BaseController end def selected_payment_method - @order.payments.order(:created_at).last&.payment_method + @selected_payment_method ||= @order.payments.order(:created_at).last&.payment_method end def update_order