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

Commit 0024ecd

Browse files
author
Tomasz Kostuch
authored
Merge pull request #451 from komakino/patch-1
Typo
2 parents 093d393 + 916fade commit 0024ecd

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/lib/taxcalc.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -164,7 +164,7 @@ export function calculateProductTax ({ product, taxClasses, taxCountry = 'PL', t
164164
el.customer_tax_class_ids.indexOf(userGroupId) >= 0
165165
)
166166
} else {
167-
taxClass = taxClasses.find((el) => el.product_tax_class_ids.indexOf(parseInt(product.tax_class_id) >= 0))
167+
taxClass = taxClasses.find((el) => el.product_tax_class_ids.indexOf(parseInt(product.tax_class_id)) >= 0)
168168
}
169169

170170
if (taxClass) {

0 commit comments

Comments
 (0)