Changed to ternary operator
This commit is contained in:
1 parent
65aeb8e298
commit
eb4002fddb
1 file changed
+4
-1
@@ -87,7 +87,10 @@ const CreateMonitor = () => {
|
|||||||
checks.type === "http"
|
checks.type === "http"
|
||||||
? "https://" + generalSettings.url
|
? "https://" + generalSettings.url
|
||||||
: generalSettings.url,
|
: generalSettings.url,
|
||||||
name: generalSettings.name || generalSettings.url,
|
name:
|
||||||
|
generalSettings.name === ""
|
||||||
|
? generalSettings.url
|
||||||
|
: generalSettings.name,
|
||||||
...checks,
|
...checks,
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|||||||
Reference in new issue
Block a user