fix email type

This commit is contained in:
Alex Holliday committed 2025-06-16 13:30:27 +08:00
1 parent bea23a94bb
commit 4fd2a29ab3
1 file changed
+1 -1
@@ -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 = "";