From 9389c2b283c39694f788e9954293fde81791a933 Mon Sep 17 00:00:00 2001 From: Bruno Quaresma Date: Fri, 5 Jan 2024 09:45:34 -0300 Subject: [PATCH] refactor(site): only show derp tags if they are true (#11439) --- .../pages/HealthPage/WorkspaceProxyPage.tsx | 18 +++++++++++++----- 1 file changed, 13 insertions(+), 5 deletions(-) diff --git a/site/src/pages/HealthPage/WorkspaceProxyPage.tsx b/site/src/pages/HealthPage/WorkspaceProxyPage.tsx index 8bf2f2a989..d436a75ad5 100644 --- a/site/src/pages/HealthPage/WorkspaceProxyPage.tsx +++ b/site/src/pages/HealthPage/WorkspaceProxyPage.tsx @@ -107,11 +107,19 @@ export const WorkspaceProxyPage = () => { }>{region.version} )} - - DERP Enabled - - DERP Only - Deleted + {region.derp_enabled && ( + + DERP Enabled + + )} + {region.derp_only && ( + + DERP Only + + )} + {region.deleted && ( + Deleted + )}