Use MS_PER_MINUTE
This commit is contained in:
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,
|
||||
});
|
||||
|
||||
Reference in new issue
Block a user