-
Notifications
You must be signed in to change notification settings - Fork 103
feat(default-theme): display 400 errors right from the API #572
feat(default-theme): display 400 errors right from the API #572
Conversation
💙 shopware-pwa successfully deployed at https://d430480fec104b6cc21d6b858e61da6985b6c3e5.shopware-pwa.preview.storefrontcloud.io |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
just small simplification for error computed sections in components :)
userError, | ||
getMessagesFromErrorsArray |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
userError, | |
getMessagesFromErrorsArray | |
userErrorMessages |
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.message) | ||
) | ||
} | ||
}, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
then we don't need this computed section in components
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
methods: { | ||
async invokeUpdate() { | ||
const emailChanged = await this.updateEmail({ | ||
email: this.email, | ||
confirmEmail: this.confirmEmail, | ||
emailConfirmation: this.confirmEmail, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@Michal-Dziedzinski tu jest fix
also closes; #416 |
thanks @akrajna 👍, could you create a new issue regarding this? |
closes #555
Checklist