From a375159a0309365418267ff0f9a235f9e6012a97 Mon Sep 17 00:00:00 2001 From: BrunoQuaresma Date: Fri, 5 Jan 2024 12:36:58 +0000 Subject: [PATCH] refactor(site): only show derp tags if they are true --- .../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 8bf2f2a989206..d436a75ad5e8d 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 + )}