Skip to content

Conversation

@thomasthune
Copy link

As discussed in #923

Using the respective stores for payment and shipping for the methods. I think i got rid of all the references to the old getters.

mounted () {
if (!this.shipping.shippingMethod || this.notInMethods(this.shipping.shippingMethod)) {
this.shipping.shippingMethod = this.shippingMethods[0].method_code
this.shipping.shippingMethod = this.shippingMethods.find(item => item.default).method_code
Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Selecting the default method instead of the first.

@pkarw
Copy link
Collaborator

pkarw commented Apr 6, 2018

Looks good! I'll test it on Monday and merge in; Great job! Go on with another refactors where you find it required/beneficial :)

@pkarw pkarw merged commit c31379c into vuestorefront:develop Apr 7, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants