File tree Expand file tree Collapse file tree 3 files changed +22
-3
lines changed
app/code/Magento/Checkout/view/frontend/web/template
shipping-address/address-renderer
shipping-information/address-renderer Expand file tree Collapse file tree 3 files changed +22
-3
lines changed Original file line number Diff line number Diff line change 13
13
14
14
<!-- ko foreach: { data: currentBillingAddress().customAttributes, as: 'element' } -->
15
15
<!-- ko foreach: { data: Object.keys(element), as: 'attribute' } -->
16
- <!-- ko text: element[attribute].value --> <!-- /ko -->
16
+ <!-- ko if: (typeof element[attribute] === "object") -->
17
+ <!-- ko text: element[attribute].value --> <!-- /ko -->
18
+ <!-- /ko -->
19
+
20
+ <!-- ko if: (typeof element[attribute] === "string") -->
21
+ <!-- ko text: element[attribute] --> <!-- /ko -->
22
+ <!-- /ko --> < br />
17
23
<!-- /ko -->
18
24
<!-- /ko -->
19
25
Original file line number Diff line number Diff line change 13
13
14
14
<!-- ko foreach: { data: address().customAttributes, as: 'element' } -->
15
15
<!-- ko foreach: { data: Object.keys(element), as: 'attribute' } -->
16
- <!-- ko text: element[attribute].value --> <!-- /ko -->
16
+ <!-- ko if: (typeof element[attribute] === "object") -->
17
+ <!-- ko text: element[attribute].value --> <!-- /ko -->
18
+ <!-- /ko -->
19
+
20
+ <!-- ko if: (typeof element[attribute] === "string") -->
21
+ <!-- ko text: element[attribute] --> <!-- /ko -->
22
+ <!-- /ko --> < br />
17
23
<!-- /ko -->
18
24
<!-- /ko -->
19
25
Original file line number Diff line number Diff line change 13
13
14
14
<!-- ko foreach: { data: address().customAttributes, as: 'element' } -->
15
15
<!-- ko foreach: { data: Object.keys(element), as: 'attribute' } -->
16
- <!-- ko text: element[attribute].value --> <!-- /ko -->
16
+ <!-- ko if: (typeof element[attribute] === "object") -->
17
+ <!-- ko text: element[attribute].value --> <!-- /ko -->
18
+ <!-- /ko -->
19
+
20
+ <!-- ko if: (typeof element[attribute] === "string") -->
21
+ <!-- ko text: element[attribute] --> <!-- /ko -->
22
+ <!-- /ko --> < br />
17
23
<!-- /ko -->
18
24
<!-- /ko -->
25
+
19
26
<!-- /ko -->
You can’t perform that action at this time.
0 commit comments