Merge pull request #2171 from Safelite/feature/afterPay0

Do not send safeliteHop amounts less than 0
This commit is contained in:
CarlNation 2024-12-12 15:19:08 -05:00 committed by GitHub
commit 9ee425c7d1
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

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