Commit e574dd24 authored by Kyle Muldoon's avatar Kyle Muldoon

fixed promotions equals price when no promotions can be found

parent 5820e68d
...@@ -19,9 +19,12 @@ export const promoCalcUtil = (productList) => { ...@@ -19,9 +19,12 @@ export const promoCalcUtil = (productList) => {
if (curr.product.promo) { if (curr.product.promo) {
temp = temp * (parseFloat(curr.product.promo) / 100.0) temp = temp * (parseFloat(curr.product.promo) / 100.0)
return parseFloat(acc) + temp
} }
return parseFloat(acc) + temp else {
return 0.0
}
}, 0) }, 0)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment