Skip to content

Commit

Permalink
fix(default-theme): missing country name in address manager
Browse files Browse the repository at this point in the history
  • Loading branch information
mkucmus committed Jul 5, 2022
1 parent f331871 commit 1bc3ca3
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions packages/default-theme/src/components/forms/SwAddressManager.vue
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
<span>{{ activeAddress.firstName }} {{ activeAddress.lastName }}</span>
<p>{{ activeAddress.street }}</p>
<p>{{ activeAddress.zipcode }} {{ activeAddress.city }}</p>
<p>{{ activeAddress.country.name }}</p>
<p>{{ activeAddress.country ? activeAddress.country.name : "" }}</p>
<p>{{ activeAddress.phoneNumber }}</p>
</div>
<SwButton
Expand Down Expand Up @@ -53,7 +53,7 @@
<span>{{ address.firstName }} {{ address.lastName }}</span>
<p>{{ address.street }}</p>
<span>{{ address.zipcode }} {{ address.city }}</span>
<span>{{ address.country.name }}</span>
<span>{{ address.country ? address.country.name : "" }}</span>
<span>{{ address.phoneNumber }}</span>
</SfAddress>
</SfAddressPicker>
Expand Down Expand Up @@ -86,7 +86,7 @@
v-if="!isAddNew"
@success="onAddressSave"
@cancel="isModalOpen = false"
:address=activeAddress
:address="activeAddress"
/>
<SwAddressForm
v-if="isAddNew"
Expand Down Expand Up @@ -158,9 +158,9 @@ export default {
onAddressSave,
isEditModeOpen,
onAddressChange,
isAddNew
isAddNew,
}
}
},
}
</script>
<style lang="scss" scoped>
Expand Down Expand Up @@ -253,7 +253,7 @@ export default {
.sf-button-container {
@include for-desktop {
width: 100%;
width: 100%;
display: flex;
justify-content: space-between;
}
Expand Down

0 comments on commit 1bc3ca3

Please sign in to comment.