File tree Expand file tree Collapse file tree 3 files changed +18
-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 +18
-3
lines changed Original file line number Diff line number Diff line change 15
15
<!-- /ko --> < br />
16
16
<!-- ko foreach: { data: currentBillingAddress().customAttributes, as: 'element' } -->
17
17
<!-- ko foreach: { data: Object.keys(element), as: 'attribute' } -->
18
- <!-- ko text: element[attribute].value --> <!-- /ko -->
18
+ <!-- ko if: (typeof element[attribute] === "object") -->
19
+ <!-- ko text: element[attribute].value --> <!-- /ko -->
20
+ <!-- /ko -->
21
+ <!-- ko if: (typeof element[attribute] === "string") -->
22
+ <!-- ko text: element[attribute] --> <!-- /ko -->
23
+ <!-- /ko --> < br />
19
24
<!-- /ko -->
20
25
<!-- /ko -->
21
26
< button type ="button "
Original file line number Diff line number Diff line change 15
15
<!-- /ko --> < br />
16
16
<!-- ko foreach: { data: address().customAttributes, as: 'element' } -->
17
17
<!-- ko foreach: { data: Object.keys(element), as: 'attribute' } -->
18
- <!-- ko text: element[attribute].value --> <!-- /ko -->
18
+ <!-- ko if: (typeof element[attribute] === "object") -->
19
+ <!-- ko text: element[attribute].value --> <!-- /ko -->
20
+ <!-- /ko -->
21
+ <!-- ko if: (typeof element[attribute] === "string") -->
22
+ <!-- ko text: element[attribute] --> <!-- /ko -->
23
+ <!-- /ko --> < br />
19
24
<!-- /ko -->
20
25
<!-- /ko -->
21
26
<!-- ko if: (address().isEditable()) -->
Original file line number Diff line number Diff line change 15
15
<!-- /ko --> < br />
16
16
<!-- ko foreach: { data: address().customAttributes, as: 'element' } -->
17
17
<!-- ko foreach: { data: Object.keys(element), as: 'attribute' } -->
18
- <!-- ko text: element[attribute].value --> <!-- /ko -->
18
+ <!-- ko if: (typeof element[attribute] === "object") -->
19
+ <!-- ko text: element[attribute].value --> <!-- /ko -->
20
+ <!-- /ko -->
21
+ <!-- ko if: (typeof element[attribute] === "string") -->
22
+ <!-- ko text: element[attribute] --> <!-- /ko -->
23
+ <!-- /ko --> < br />
19
24
<!-- /ko -->
20
25
<!-- /ko -->
21
26
<!-- /ko -->
You can’t perform that action at this time.
0 commit comments