Skip to content

Commit

Permalink
Improved returing the states from stateOptions (vuestorefront#431)
Browse files Browse the repository at this point in the history
  • Loading branch information
Aishwary Shrivastava committed Aug 24, 2020
1 parent 97450d6 commit c3bef9e
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions components/organisms/o-my-account-shipping-details.vue
Original file line number Diff line number Diff line change
Expand Up @@ -212,11 +212,7 @@ export default {
},
stateOptions () {
let countryCode = this.editedAddress.country ? this.countries.find(country => country.name === this.editedAddress.country).code : config.i18n.defaultCountry
if (this.states[countryCode] !== null) {
return this.states[countryCode]
} else {
return []
}
return this.states[countryCode] ? this.states[countryCode] : []
}
},
methods: {
Expand Down

0 comments on commit c3bef9e

Please sign in to comment.