Skip to content

Commit 1b3dd5a

Browse files
authored
MAGETWO-65421: [GitHub][PR] #8618: Apply coupon code button issue on Checkout #8759
2 parents 20d4c8c + 9cd6320 commit 1b3dd5a

File tree

1 file changed

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

1 file changed

+2
-1
lines changed

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

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,11 +15,12 @@ define([
1515

1616
var totals = quote.getTotals(),
1717
couponCode = ko.observable(null),
18-
isApplied = ko.observable(couponCode() != null);
18+
isApplied;
1919

2020
if (totals()) {
2121
couponCode(totals()['coupon_code']);
2222
}
23+
isApplied = ko.observable(couponCode() != null);
2324

2425
return Component.extend({
2526
defaults: {

0 commit comments

Comments
 (0)