mirror of
https://github.com/openfoodfoundation/openfoodnetwork
synced 2026-01-24 20:36:49 +00:00
return an error if no shipping method is selected
This commit is contained in:
@@ -54,6 +54,7 @@ class SplitCheckoutController < ::BaseController
|
||||
|
||||
def update_order
|
||||
return unless params[:order]
|
||||
return if @order.state == "address" && params[:shipping_method_id].blank?
|
||||
|
||||
@order.update(order_params)
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user