diff --git a/Client/src/Pages/Monitors/CreateMonitor/index.jsx b/Client/src/Pages/Monitors/CreateMonitor/index.jsx index 428248255..f77ca5478 100644 --- a/Client/src/Pages/Monitors/CreateMonitor/index.jsx +++ b/Client/src/Pages/Monitors/CreateMonitor/index.jsx @@ -51,7 +51,7 @@ const CreateMonitor = () => { navigate("/not-found", {replace: true}); } const {name, ...rest} = data; //data.name is read-only - if(rest.type == 'http') rest.url = rest.url.substring(8, rest.url.length) + if(rest.type === 'http') rest.url = URL.parse(rest.url)?.host; rest.name = `${name} (Clone)`; rest.interval /= MS_PER_MINUTE; setMonitor({