Skip to content

Commit

Permalink
vuestorefront#2593 - Payment - fixed issue when no address set
Browse files Browse the repository at this point in the history
  • Loading branch information
szafran89 committed Mar 21, 2019
1 parent f9c6d10 commit f5b06a1
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
5 changes: 4 additions & 1 deletion core/modules/checkout/components/Payment.ts
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,10 @@ export const Payment = {
}
},
mounted () {
if (this.payment.firstName.length === 0) {
if (
this.payment.hasOwnProperty('firstName') &&
this.payment.firstName.length === 0
) {
this.initializeBillingAddress()
} else {
if (this.payment.company) {
Expand Down
2 changes: 1 addition & 1 deletion core/pages/Category.js
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ export default {
const defaultFilters = store.state.config.products.defaultFilters
store.dispatch('category/resetFilters')
EventBus.$emit('filter-reset')

await store.dispatch('category/list', { level: store.state.config.entities.category.categoriesDynamicPrefetch && store.state.config.entities.category.categoriesDynamicPrefetchLevel ? store.state.config.entities.category.categoriesDynamicPrefetchLevel : null, includeFields: store.state.config.entities.optimize && Vue.prototype.$isServer ? store.state.config.entities.category.includeFields : null })
await store.dispatch('attribute/list', { // load filter attributes for this specific category
filterValues: defaultFilters, // TODO: assign specific filters/ attribute codes dynamicaly to specific categories
Expand Down

0 comments on commit f5b06a1

Please sign in to comment.