Use MS_PER_MINUTE

This commit is contained in:
Alexander Holliday authored and Ananya Verma committed 2024-08-31 00:54:43 +05:30
1 parent 20868135c1
commit 2446b81e79
1 file changed
+1 -1
@@ -53,7 +53,7 @@ const CreateMonitor = () => {
const {name, ...rest} = data; //data.name is read-only
if(rest.type == 'http') rest.url = rest.url.substring(8, rest.url.length)
rest.name = `${name} (Clone)`;
rest.interval /= 60000;
rest.interval /= MS_PER_MINUTE;
setMonitor({
...rest,
});