Skip to content
This repository was archived by the owner on Oct 31, 2024. It is now read-only.

Commit

Permalink
fix(default-theme): passing the customer entity during register on ch…
Browse files Browse the repository at this point in the history
…eckout (#1223)
  • Loading branch information
mkucmus authored Nov 7, 2020
1 parent 112b845 commit 6981801
Showing 1 changed file with 21 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -241,7 +241,27 @@ export default {
computed: {
useUserErrorMessages() {
// all the 400 errors are in a raw format stright from the API - to be extracted easily depeding on needs.
return this.userError && this.getMessagesFromErrorsArray(this.userError)
return (
this.userError &&
this.getMessagesFromErrorsArray(this.userError.message)
)
},
customer() {
return {
email: this.email,
password: this.password,
firstName: this.firstName,
lastName: this.lastName,
salutationId: this.salutationId,
storefrontUrl:
window &&
window.location &&
`${window.location.protocol}//${window.location.hostname}`,
billingAddress: Object.assign({}, this.billingAddress, {
firstName: this.firstName,
lastName: this.lastName,
}),
}
},
},
watch: {
Expand Down

1 comment on commit 6981801

@vercel
Copy link

@vercel vercel bot commented on 6981801 Nov 7, 2020

Choose a reason for hiding this comment

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

Please sign in to comment.