Skip to content

Commit

Permalink
fix promotions without code appearing in the info popover as undefined
Browse files Browse the repository at this point in the history
  • Loading branch information
Destrings2 committed Feb 12, 2020
1 parent 9721ba0 commit 42f8e84
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion screen/store/components/ComponentsCheckout.js
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ storeComps.CheckOutPage = {
getUniqueValuesByProperty: function (items, property, filter){
var uniqueVals = {};
items.forEach(function (val) {
if(filter(val) && !(val[property] in uniqueVals))
if(filter(val) && !(val[property] in uniqueVals) && val[property] != undefined)
uniqueVals[val[property]] = true;
});
return Object.getOwnPropertyNames(uniqueVals);
Expand Down

0 comments on commit 42f8e84

Please sign in to comment.