mirror of
https://github.com/openfoodfoundation/openfoodnetwork
synced 2026-03-04 02:31:33 +00:00
Tidy up OrdersController#load_order
This commit is contained in:
@@ -60,9 +60,7 @@ class CheckoutController < ::BaseController
|
||||
@order = current_order
|
||||
|
||||
return order_invalid! if order_invalid_for_checkout?
|
||||
|
||||
handle_invalid_stock && return unless valid_order_line_items?
|
||||
|
||||
return handle_invalid_stock unless valid_order_line_items?
|
||||
return if valid_payment_intent_provided?
|
||||
|
||||
before_address
|
||||
|
||||
Reference in New Issue
Block a user