Items added to cart – NZ subsidiary

unchecking the subsidiary

cart page

_.extend(HeaderMiniCartView.prototype, {
getContext: _.wrap(HeaderMiniCartView.prototype.getContext, function (fn) {
let originalRet = fn.apply(this, _.toArray(arguments).slice(1));
_.each(this.model.get('lines').models, (item) => {
if (item) {
let isItemAvailable = item.get('item').get(allowedSubsidiaries[subsidiary]);
if (!isItemAvailable) {
this.model.get('lines').remove(item)
this.model.removeLine(item)
}
}
});
return originalRet
})
});