Skip to content

Commit f54561e

Browse files
author
Shikha Mishra
authored
#30255: Fixed "The coupon code has been accepted." message remains after a Coupon Code was removed
Fixed "The coupon code has been accepted." message remains after a Coupon Code was removed
1 parent 68770fc commit f54561e

File tree

1 file changed

+4
-1
lines changed
  • app/code/Magento/Sales/view/adminhtml/web/order/create

1 file changed

+4
-1
lines changed

app/code/Magento/Sales/view/adminhtml/web/order/create/scripts.js

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1202,7 +1202,10 @@ define([
12021202
for (var i = 0; i < this.loadingAreas.length; i++) {
12031203
var id = this.loadingAreas[i];
12041204
if ($(this.getAreaId(id))) {
1205-
if ('message' != id || response[id]) {
1205+
if ('message' != id && response[id]) {
1206+
$(this.getAreaId(id)).update(response[id]);
1207+
}
1208+
if ('message' == id) {
12061209
$(this.getAreaId(id)).update(response[id]);
12071210
}
12081211
if ($(this.getAreaId(id)).callback) {

0 commit comments

Comments
 (0)