Skip to content

Commit

Permalink
Fix discount label.
Browse files Browse the repository at this point in the history
  • Loading branch information
rsantellan committed Jun 29, 2018
1 parent 285a39c commit 85577bd
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 85577bd

Please sign in to comment.