From e7d23f4c7f40192c398546dc9d3a013b293ede38 Mon Sep 17 00:00:00 2001 From: fullsizemalt <106900403+fullsizemalt@users.noreply.github.com> Date: Mon, 12 Jan 2026 16:18:06 -0800 Subject: [PATCH] fix: Remove floating 0 on Environment page React renders 0 when using {0 && ...} pattern. Changed to proper boolean comparison: {value !== undefined && value > 0 && (...)} --- frontend/src/pages/EnvironmentDashboard.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/frontend/src/pages/EnvironmentDashboard.tsx b/frontend/src/pages/EnvironmentDashboard.tsx index c8de852..057e0e9 100644 --- a/frontend/src/pages/EnvironmentDashboard.tsx +++ b/frontend/src/pages/EnvironmentDashboard.tsx @@ -226,7 +226,7 @@ export default function EnvironmentDashboard() { )} {/* Active Alerts from database */} - {dashboard?.alerts.active && dashboard.alerts.active > 0 && ( + {dashboard?.alerts?.active !== undefined && dashboard.alerts.active > 0 && (