Merge pull request #1605 from Safelite/feature/skiener/CSR-1857

CSR-1857 | Exclude promos from lineItems sent to safelite-hop
This commit is contained in:
scottkiener 2023-12-01 08:54:19 -05:00 committed by GitHub
commit f0bc62e3b2
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -532,7 +532,7 @@ export default {
}
cartItems.forEach((item) => {
if (item.name !== null) {
if (item.name !== null && item.category != "promos") {
lineItems.push(`${item.name}|${(item.salesTax + item.subTotal).toFixed(2)}|1`);
}
});