Replace failed to update toasts with one generic string

This commit is contained in:
advplyr 2024-09-29 17:53:52 -05:00
parent c5ecd35fe9
commit 562c30cff4
23 changed files with 27 additions and 44 deletions

View file

@ -148,7 +148,7 @@ export default {
var result = await this.$axios.$patch(`/api/authors/${this.authorId}`, updatePayload).catch((error) => {
console.error('Failed', error)
const errorMsg = error.response ? error.response.data : null
this.$toast.error(errorMsg || this.$strings.ToastAuthorUpdateFailed)
this.$toast.error(errorMsg || this.$strings.ToastFailedToUpdate)
return null
})
if (result) {