Skip to content
This repository was archived by the owner on May 28, 2023. It is now read-only.

Commit d0fe40b

Browse files
cewaldtkostuch
authored andcommitted
Add fallback if sourcePriceInclTax and finalPriceInclTax are not set in multistore store object in magento1 platform
1 parent 67c2166 commit d0fe40b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/platform/magento1/tax.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,8 +23,8 @@ class TaxProxy extends AbstractTaxProxy {
2323
if (store.elasticsearch.index === indexName) {
2424
taxRegion = store.tax.defaultRegion
2525
taxCountry = store.tax.defaultCountry
26-
sourcePriceInclTax = store.tax.sourcePriceIncludesTax
27-
finalPriceInclTax = store.tax.finalPriceIncludesTax
26+
sourcePriceInclTax = store.tax.sourcePriceIncludesTax || null
27+
finalPriceInclTax = store.tax.finalPriceIncludesTax || null
2828
this._storeConfigTax = store.tax
2929
break;
3030
}

0 commit comments

Comments
 (0)