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) notification from api for email reports (#352)

Maksim Mrugc56dfb6505ff
diff --git a/app/pages/Project/Settings/Emails/Emails.tsx b/app/pages/Project/Settings/Emails/Emails.tsx
index b5d983aa7..6013f7972 100644
--- a/app/pages/Project/Settings/Emails/Emails.tsx
+++ b/app/pages/Project/Settings/Emails/Emails.tsx
@@ -151,10 +151,10 @@ const EmailList = ({
})
return newEmails
})
- reportTypeNotifiction(t('apiNotifications.roleUpdated'))
+ reportTypeNotifiction(t('apiNotifications.updatedPeriodEmailReports'))
} catch (e) {
console.error(`[ERROR] Error while updating user's role: ${e}`)
- emailFailed(t('apiNotifications.roleUpdateError'))
+ emailFailed(t('apiNotifications.updatedPeriodEmailReportsError'))
}
setOpen(false)
diff --git a/public/locales/en.json b/public/locales/en.json
index c0469199c..10130ffeb 100644
--- a/public/locales/en.json
+++ b/public/locales/en.json
@@ -7,6 +7,8 @@
"cancelSubFirst": "Please cancel your paid subscription first",
"accountDeleted": "Your account has been deleted",
"accountDeleteError": "Error while deleting your account",
+ "updatedPeriodEmailReports": "User's email reports period has been updated",
+ "updatedPeriodEmailReportsError": "Error occurred while updating user's email reports period",
"roleUpdated": "User's role has been changed",
"roleUpdateError": "Error occurred while changing user's role",
"userInvited": "The user has been invited to your project",