From 206e28d1b999b456f23a77fa4b5e1d71d0190f3e Mon Sep 17 00:00:00 2001 From: Alex Holliday Date: Fri, 6 Mar 2026 11:01:38 -0800 Subject: [PATCH] user helper --- client/src/Pages/CreateMonitor/index.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/client/src/Pages/CreateMonitor/index.tsx b/client/src/Pages/CreateMonitor/index.tsx index dac5189ba..9a310f3b1 100644 --- a/client/src/Pages/CreateMonitor/index.tsx +++ b/client/src/Pages/CreateMonitor/index.tsx @@ -32,7 +32,7 @@ import { import { SPACING, LAYOUT } from "@/Utils/Theme/constants"; import { useGet, usePost, usePatch, useDelete } from "@/Hooks/UseApi"; import { useMonitorForm } from "@/Hooks/useMonitorForm"; -import type { Monitor, MonitorType, GamesMap } from "@/Types/Monitor"; +import { type Monitor, type MonitorType, type GamesMap, supportsGeoCheck } from "@/Types/Monitor"; import type { Notification } from "@/Types/Notification"; import type { MonitorFormData } from "@/Validation/monitor"; @@ -885,7 +885,7 @@ const CreateMonitorPage = () => { /> )} - {(watchedType === "http" || watchedType === "ping") && ( + {supportsGeoCheck(watchedType) && (