Skip to content

Commit 5c79b5a

Browse files
committed
Merge remote-tracking branch 'origin/MC-30739' into 2.4-develop-pr11
2 parents 9ee5c0a + 7b6ba98 commit 5c79b5a

File tree

3 files changed

+15
-9
lines changed

3 files changed

+15
-9
lines changed

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

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -255,9 +255,11 @@ function (
255255
return attribute.label;
256256
}
257257

258-
resultAttribute = _.findWhere(this.source.get('customAttributes')[attribute['attribute_code']], {
259-
value: attribute.value
260-
});
258+
if (typeof this.source.get('customAttributes') !== 'undefined') {
259+
resultAttribute = _.findWhere(this.source.get('customAttributes')[attribute['attribute_code']], {
260+
value: attribute.value
261+
});
262+
}
261263

262264
return resultAttribute && resultAttribute.label || attribute.value;
263265
}

app/code/Magento/Checkout/view/frontend/web/js/view/shipping-address/address-renderer/default.js

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -65,9 +65,11 @@ define([
6565
return attribute.label;
6666
}
6767

68-
resultAttribute = _.findWhere(this.source.get('customAttributes')[attribute['attribute_code']], {
69-
value: attribute.value
70-
});
68+
if (typeof this.source.get('customAttributes') !== 'undefined') {
69+
resultAttribute = _.findWhere(this.source.get('customAttributes')[attribute['attribute_code']], {
70+
value: attribute.value
71+
});
72+
}
7173

7274
return resultAttribute && resultAttribute.label || attribute.value;
7375
},

app/code/Magento/Checkout/view/frontend/web/js/view/shipping-information/address-renderer/default.js

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -42,9 +42,11 @@ define([
4242
return attribute.label;
4343
}
4444

45-
resultAttribute = _.findWhere(this.source.get('customAttributes')[attribute['attribute_code']], {
46-
value: attribute.value
47-
});
45+
if (typeof this.source.get('customAttributes') !== 'undefined') {
46+
resultAttribute = _.findWhere(this.source.get('customAttributes')[attribute['attribute_code']], {
47+
value: attribute.value
48+
});
49+
}
4850

4951
return resultAttribute && resultAttribute.label || attribute.value;
5052
}

0 commit comments

Comments
 (0)