mirror of
https://github.com/openfoodfoundation/openfoodnetwork
synced 2026-03-06 02:51:34 +00:00
@@ -70,7 +70,7 @@ class SplitCheckoutController < ::BaseController
|
||||
end
|
||||
|
||||
def validate_current_step!
|
||||
step = params[:step].tap{ |step| ["details", "payment", "summary"].include? step }
|
||||
step = ([params[:step]] & ["details", "payment", "summary"]).first
|
||||
send("validate_#{step}!")
|
||||
end
|
||||
|
||||
|
||||
Reference in New Issue
Block a user