Skip to content

Commit 022f38e

Browse files
committed
MC-37820: [UX] Payment methods list is not refreshed on billing address change
1 parent f05c409 commit 022f38e

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

app/code/Magento/Checkout/view/frontend/web/js/view/billing-address.js

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -165,6 +165,7 @@ function (
165165
checkoutData.setNewCustomerBillingAddress(addressData);
166166
}
167167
}
168+
setBillingAddressAction(globalMessageList);
168169
this.updateAddresses();
169170
},
170171

@@ -222,7 +223,11 @@ function (
222223
* Trigger action to update shipping and billing addresses
223224
*/
224225
updateAddresses: function () {
225-
setBillingAddressAction(globalMessageList);
226+
if (window.checkoutConfig.reloadOnBillingAddress ||
227+
!window.checkoutConfig.displayBillingOnPaymentMethod
228+
) {
229+
setBillingAddressAction(globalMessageList);
230+
}
226231
},
227232

228233
/**

0 commit comments

Comments
 (0)