Skip to content

Commit c9c6ae2

Browse files
committed
ACP2E-862: Cash on Delivery method is visible even if it is not allowed for that particular country
1 parent 74e52a8 commit c9c6ae2

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

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

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -246,9 +246,7 @@ function (
246246
* @param {Boolean} force
247247
*/
248248
updateAddresses: function (force) {
249-
if (typeof force === "undefined"){
250-
force = false;
251-
}
249+
force = !(typeof force === 'undefined' || force !== true)
252250

253251
if (force
254252
|| window.checkoutConfig.reloadOnBillingAddress

0 commit comments

Comments
 (0)