diff --git a/src/components/SitesTable.tsx b/src/components/SitesTable.tsx index 61797f1ec..f9d541d3f 100644 --- a/src/components/SitesTable.tsx +++ b/src/components/SitesTable.tsx @@ -390,22 +390,21 @@ export default function SitesTable({ // it has not checked in yet return -; } + // agent and agentVersion were added after newtVersion, so a + // site still running an older Newt reports only newtVersion. + // Without these fallbacks the badge renders with no label and + // no version at all. + const agentLabel = + originalRow.agent == "cli" ? "Pangolin CLI" : "Newt"; + const agentVersion = + originalRow.agentVersion ?? originalRow.newtVersion; return (
- - {originalRow.agent == "newt" - ? "Newt" - : null} - {originalRow.agent == "cli" - ? "Pangolin CLI" - : null} - - {originalRow.agentVersion && ( - - v{originalRow.agentVersion} - + {agentLabel} + {agentVersion && ( + v{agentVersion} )}