handleChange(event, "type", setChecks)}
- />
-
-
-
*/}
{errors["type"] ? (
@@ -322,18 +296,24 @@ const CreateMonitor = () => {
onChange={() => console.log("disabled")}
isDisabled={true}
/>
-
- console.log("disabled")}
- />
-
- You can separate multiple emails with a comma
-
-
+ {monitor.notifications.some(
+ (notification) => notification.type === "emails"
+ ) ? (
+
+ console.log("disabled")}
+ />
+
+ You can separate multiple emails with a comma
+
+
+ ) : (
+ ""
+ )}