From ccb612bb52fcfd752cc67d261a158f34e1b01844 Mon Sep 17 00:00:00 2001
From: Josh Hawkins <32435876+hawkeye217@users.noreply.github.com>
Date: Fri, 12 Jul 2024 08:21:59 -0500
Subject: [PATCH] replace underscores with spaces in zone names
---
web/src/views/settings/CameraSettingsView.tsx | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/web/src/views/settings/CameraSettingsView.tsx b/web/src/views/settings/CameraSettingsView.tsx
index d8100a4f4..082d0f33f 100644
--- a/web/src/views/settings/CameraSettingsView.tsx
+++ b/web/src/views/settings/CameraSettingsView.tsx
@@ -343,7 +343,7 @@ export default function CameraSettingsView({
All {alertsLabels} objects
{watchedAlertsZones && watchedAlertsZones.length > 0
- ? ` detected in ${watchedAlertsZones.map((zone) => capitalizeFirstLetter(zone)).join(", ")}`
+ ? ` detected in ${watchedAlertsZones.map((zone) => capitalizeFirstLetter(zone).replaceAll("_", " ")).join(", ")}`
: ""}{" "}
on{" "}
{capitalizeFirstLetter(
@@ -444,7 +444,7 @@ export default function CameraSettingsView({
not classified as Alerts{" "}
{watchedDetectionsZones &&
watchedDetectionsZones.length > 0
- ? ` that are detected in ${watchedDetectionsZones.map((zone) => capitalizeFirstLetter(zone)).join(", ")}`
+ ? ` that are detected in ${watchedDetectionsZones.map((zone) => capitalizeFirstLetter(zone).replaceAll("_", " ")).join(", ")}`
: ""}{" "}
on{" "}
{capitalizeFirstLetter(