We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent a005167 commit 7431c27Copy full SHA for 7431c27
app/code/Magento/SalesRule/view/frontend/web/js/view/payment/discount.js
@@ -15,12 +15,14 @@ define([
15
16
var totals = quote.getTotals(),
17
couponCode = ko.observable(null),
18
- isApplied = ko.observable(couponCode() != null);
+ isApplied;
19
20
if (totals()) {
21
couponCode(totals()['coupon_code']);
22
}
23
24
+ isApplied = ko.observable(couponCode() != null);
25
+
26
return Component.extend({
27
defaults: {
28
template: 'Magento_SalesRule/payment/discount'
0 commit comments