Skip to content

📈 Open source, privacy-first web analytics — a cookie-less Google Analytics alternative with built-in error tracking and performance monitoring. Self-host it or use our cloud. Get started for free!

fix: error text

Blue Mousea268e1e32bd4
diff --git a/web/app/pages/Project/Settings/Emails/Emails.tsx b/web/app/pages/Project/Settings/Emails/Emails.tsx
index 9ecac20f2..2f89953af 100644
--- a/web/app/pages/Project/Settings/Emails/Emails.tsx
+++ b/web/app/pages/Project/Settings/Emails/Emails.tsx
@@ -377,10 +377,9 @@ const Emails = ({ projectId }: { projectId: string }) => {
await removeSubscriber(projectId, emailId)
const results = _filter(emails, (s) => s.id !== emailId)
setEmails(results)
- toast.success(t('apiNotifications.emailDelete'))
} catch (reason: any) {
console.error(`[ERROR] Error while deleting a email: ${reason}`)
- toast.error(t('apiNotifications.emailDeleteError'))
+ toast.error(typeof reason === 'string' ? reason : t('apiNotifications.somethingWentWrong'))
} finally {
setIsDeleting(false)
}