diff --git a/client/src/Pages/Notifications/create/index.jsx b/client/src/Pages/Notifications/create/index.jsx index 8b5512ca8..2fd83e4e1 100644 --- a/client/src/Pages/Notifications/create/index.jsx +++ b/client/src/Pages/Notifications/create/index.jsx @@ -130,7 +130,7 @@ const CreateNotifications = () => { (type) => type._id === newNotification.type ).value; - if (newNotification.type === "email") { + if (type === "email") { newNotification.config = null; } else if (type === "slack" || type === "webhook" || type === "discord") { newNotification.address = "";