fix display error message (#293)
Co-authored-by: Julien Nahum <julien@nahum.net>
This commit is contained in:
@@ -59,7 +59,7 @@ export default {
|
||||
this.useAlert.error('Something went wrong!')
|
||||
}
|
||||
}).catch((error) => {
|
||||
this.useAlert.error(error.response.data.message)
|
||||
this.useAlert.error(error.data.message)
|
||||
})
|
||||
}
|
||||
}
|
||||
|
||||
@@ -145,7 +145,7 @@ export default {
|
||||
this.fetchGeneratedForm(generationId)
|
||||
}
|
||||
}).catch(error => {
|
||||
this.useAlert.error(error.response.data.message)
|
||||
this.useAlert.error(error.data.message)
|
||||
this.state = 'default'
|
||||
this.loading = false
|
||||
})
|
||||
|
||||
@@ -83,7 +83,7 @@ export default {
|
||||
opnFetch('/subscription/new/' + this.plan + '/' + (!this.yearly ? 'monthly' : 'yearly') + '/checkout/with-trial').then((data) => {
|
||||
window.location = data.checkout_url
|
||||
}).catch((error) => {
|
||||
useAlert().error(error.response.data.message)
|
||||
useAlert().error(error.data.message)
|
||||
}).finally(() => {
|
||||
this.loading = false
|
||||
this.close()
|
||||
|
||||
Reference in New Issue
Block a user