We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 20d4c8c + 9cd6320 commit 1b3dd5aCopy full SHA for 1b3dd5a
app/code/Magento/SalesRule/view/frontend/web/js/view/payment/discount.js
@@ -15,11 +15,12 @@ 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
+ isApplied = ko.observable(couponCode() != null);
24
25
return Component.extend({
26
defaults: {
0 commit comments