Skip to content

Commit 7a66bac

Browse files
ENGCOM-2122: When searching for the title if search for all the segments that has … #16093
- Merge Pull Request #16093 from rsantellan/magento2:2.2-develop - Merged commits: 1. 5c3ff9c
2 parents e80727a + 5c3ff9c commit 7a66bac

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)