fix display error message (#293)

Co-authored-by: Julien Nahum <julien@nahum.net>
This commit is contained in:
formsdev
2024-01-24 14:35:47 +05:30
committed by GitHub
parent 4f56867d75
commit 8f2f2182f0
6 changed files with 6 additions and 6 deletions

View File

@@ -41,7 +41,7 @@ const deleteAccount = () => {
// Redirect to login.
router.push({ name: 'login' })
}).catch((error) => {
useAlert().error(error.response.data.message)
useAlert().error(error.data.message)
loading = false
})
}

View File

@@ -76,7 +76,7 @@ const impersonate = () => {
router.push({ name: 'home' })
}).catch((error) => {
console.error(error)
useAlert().error(error.response.data.message)
useAlert().error(error.data.message)
loading.value = false
})
}

View File

@@ -41,7 +41,7 @@ const openBillingDashboard = () => {
const url = data.portal_url
window.location = url
}).catch((error) => {
useAlert().error(error.response.data.message)
useAlert().error(error.data.message)
}).finally(() => {
billingLoading = false
})