Skip to content

Commit

Permalink
When searching for the title if search for all the segments that has …
Browse files Browse the repository at this point in the history
…a discount title making it possible displaying custom discounts.
  • Loading branch information
rsantellan committed Jun 29, 2018
1 parent f947cad commit 1ddeaca
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ define([
}

discountSegments = this.totals()['total_segments'].filter(function (segment) {
return segment.code === 'discount';
return segment.code.indexOf('discount') !== -1;
});

return discountSegments.length ? discountSegments[0].title : null;
Expand Down

0 comments on commit 1ddeaca

Please sign in to comment.