diff --git a/client/src/Hooks/useNotifications.js b/client/src/Hooks/useNotifications.js index 69e03fd5e..cc6c3e875 100644 --- a/client/src/Hooks/useNotifications.js +++ b/client/src/Hooks/useNotifications.js @@ -161,7 +161,7 @@ const useTestNotification = () => { } catch (error) { setError(error); createToast({ - body: t("notifications.test.failed"), + body: error?.response?.data?.msg || t("notifications.test.failed"), }); } finally { setIsLoading(false); diff --git a/client/src/Pages/Notifications/create/index.jsx b/client/src/Pages/Notifications/create/index.jsx index fba30185f..0fb6cce08 100644 --- a/client/src/Pages/Notifications/create/index.jsx +++ b/client/src/Pages/Notifications/create/index.jsx @@ -204,7 +204,7 @@ const CreateNotifications = () => { spacing={theme.spacing(2)} >