Skip to content

Commit 1ddeaca

Browse files
committed
When searching for the title if search for all the segments that has a discount title making it possible displaying custom discounts.
1 parent f947cad commit 1ddeaca

File tree

1 file changed

+1
-1
lines changed
  • app/code/Magento/SalesRule/view/frontend/web/js/view/summary

1 file changed

+1
-1
lines changed

app/code/Magento/SalesRule/view/frontend/web/js/view/summary/discount.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ define([
5757
}
5858

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

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

0 commit comments

Comments
 (0)