/* eslint-disable no-var, block-scoped-var, vars-on-top, no-redeclare, func-names, no-loop-func,
no-param-reassign, no-unused-vars, no-var, prefer-const
*/
// # START:salePrice
function getLowestPrice(item) {
var count = item.inventory; //
var price = item.price;
if (item.salePrice) {
var count = item.saleInventory; //
if (count > 0) {
price = item.salePrice;
}
}
if (count) { //
return price;
}
return 0;
}
// # END:salePrice
export { getLowestPrice };