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:
Andy Brett
2021-06-28 10:35:09 -07:00
committed by GitHub

View File

@@ -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