Skip to content

Commit 28113d8

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

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -237,7 +237,7 @@ function (
237237
* @return {*}
238238
*/
239239
getCountryName: function (countryId) {
240-
if (lastSelectedBillingAddress && lastSelectedBillingAddress["countryId"] != countryId) {
240+
if (lastSelectedBillingAddress && String(lastSelectedBillingAddress['countryId']) !== String(countryId)) {
241241
this.updateAddresses();
242242
}
243243
lastSelectedBillingAddress = quote.billingAddress();

0 commit comments

Comments
 (0)