Small fixes

This commit is contained in:
Abhishek 2021-02-16 19:26:46 +05:30
parent 1eb8abae85
commit e29ee7dbb3
2 changed files with 3 additions and 3 deletions

View File

@ -1344,7 +1344,7 @@ export function MonitorChart({
if={
!isCurrentlyNotMonitoring &&
checkLogs &&
(type === 'url' || type === 'api' || type === 'ip')
(type === 'url' || type === 'api')
}
>
<div

View File

@ -58,12 +58,12 @@ const pingfetch = async IPAddress => {
res = new Date().getTime() - now;
resp = {
status: isAlive ? 200 : 503,
status: isAlive ? 200 : 408,
body: null,
};
rawResp = {
body: null,
status: isAlive ? 200 : 503,
status: isAlive ? 200 : 408,
};
} catch (error) {
res = new Date().getTime() - now;