mirror of
https://github.com/openfoodfoundation/openfoodnetwork
synced 2026-01-24 20:36:49 +00:00
Merge pull request #7804 from Matt-Yorkley/default-taxrate-check
Ignore potential error in dev where default tax rate is nil
This commit is contained in:
@@ -114,7 +114,7 @@ module Spree
|
||||
end
|
||||
|
||||
def default_zone_or_zone_match?(order)
|
||||
Zone.default_tax.contains?(order.tax_zone) || order.tax_zone == zone
|
||||
Zone.default_tax&.contains?(order.tax_zone) || order.tax_zone == zone
|
||||
end
|
||||
|
||||
# Manually apply a TaxRate to a particular amount. TaxRates normally compute against
|
||||
|
||||
Reference in New Issue
Block a user