mirror of
https://github.com/openfoodfoundation/openfoodnetwork
synced 2026-03-05 02:41:33 +00:00
Make it work even if preferred_enterprise_id is null
This commit is contained in:
@@ -15,9 +15,9 @@ module OpenFoodNetwork
|
||||
end
|
||||
|
||||
def stripe_configuration_incomplete?(payment_method)
|
||||
return true if payment_method.preferred_enterprise_id.zero?
|
||||
|
||||
payment_method.stripe_account_id.blank?
|
||||
payment_method.preferred_enterprise_id.nil? ||
|
||||
payment_method.preferred_enterprise_id.zero? ||
|
||||
payment_method.stripe_account_id.blank?
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user