diff --git a/client/src/Hooks/monitorHooks.js b/client/src/Hooks/monitorHooks.js
index 4a19f2fa7..8b2a054e6 100644
--- a/client/src/Hooks/monitorHooks.js
+++ b/client/src/Hooks/monitorHooks.js
@@ -357,7 +357,9 @@ const useUpdateMonitor = () => {
expectedValue: monitor.expectedValue,
ignoreTlsErrors: monitor.ignoreTlsErrors,
jsonPath: monitor.jsonPath,
- ...((monitor.type === "port" || monitor.type === "game") && { port: monitor.port }),
+ ...((monitor.type === "port" || monitor.type === "game") && {
+ port: monitor.port,
+ }),
...(monitor.type === "hardware" && {
thresholds: monitor.thresholds,
secret: monitor.secret,
diff --git a/client/src/Pages/Uptime/Create/index.jsx b/client/src/Pages/Uptime/Create/index.jsx
index 3a1080421..5ab4de847 100644
--- a/client/src/Pages/Uptime/Create/index.jsx
+++ b/client/src/Pages/Uptime/Create/index.jsx
@@ -43,7 +43,7 @@ import {
useFetchMonitorById,
} from "../../../Hooks/monitorHooks";
-import { GAMES } from '../../../Utils/games';
+import { GAMES } from "../../../Utils/games";
/**
* Parses a URL string and returns a URL object.
@@ -115,10 +115,10 @@ const UptimeCreate = ({ isClone = false }) => {
{ _id: 4, name: t("time.fourMinutes") },
{ _id: 5, name: t("time.fiveMinutes") },
];
-
+
const GAMELIST = Object.entries(GAMES).map(([key, value]) => ({
_id: key,
- name: value.name
+ name: value.name,
}));
const CRUMBS = [
@@ -165,7 +165,7 @@ const UptimeCreate = ({ isClone = false }) => {
label: t("monitorType.game.label"),
placeholder: t("monitorType.game.placeholder"),
namePlaceholder: t("monitorType.game.namePlaceholder"),
- }
+ },
};
// Handlers
@@ -182,7 +182,8 @@ const UptimeCreate = ({ isClone = false }) => {
: monitor.url,
name: monitor.name || monitor.url.substring(0, 50),
type: monitor.type,
- port: (monitor.type === "port" || monitor.type === "game") ? monitor.port : undefined,
+ port:
+ monitor.type === "port" || monitor.type === "game" ? monitor.port : undefined,
interval: monitor.interval,
matchMethod: monitor.matchMethod,
expectedValue: monitor.expectedValue,
@@ -202,7 +203,8 @@ const UptimeCreate = ({ isClone = false }) => {
interval: monitor.interval,
teamId: monitor.teamId,
userId: monitor.userId,
- port: (monitor.type === "port" || monitor.type === "game") ? monitor.port : undefined,
+ port:
+ monitor.type === "port" || monitor.type === "game" ? monitor.port : undefined,
ignoreTlsErrors: monitor.ignoreTlsErrors,
gameId: monitor.gameId || undefined,
};
@@ -573,16 +575,16 @@ const UptimeCreate = ({ isClone = false }) => {
helperText={errors["port"]}
hidden={monitor.type !== "port" && monitor.type !== "game"}
/>
- {
- monitor.type === "game" &&
- ()}
+ {monitor.type === "game" && (
+
+ )}