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