fix(nodes): correct singular hop label in connection status (#1055)

This commit is contained in:
NIKOLYA PRODIGY
2026-05-26 21:26:20 -04:00
committed by GitHub
parent 9a4820523f
commit 2f78b64dfd
+1 -1
View File
@@ -165,7 +165,7 @@ const NodesPage = (): JSX.Element => {
? node?.viaMqtt === false && node.hopsAway === 0 ? node?.viaMqtt === false && node.hopsAway === 0
? t("nodesTable.connectionStatus.direct") ? t("nodesTable.connectionStatus.direct")
: `${node.hopsAway?.toString()} ${ : `${node.hopsAway?.toString()} ${
(node.hopsAway ?? 0 > 1) ? t("unit.hop.plural") : t("unit.hops_one") (node.hopsAway ?? 0) > 1 ? t("unit.hop.plural") : t("unit.hop.one")
} ${t("nodesTable.connectionStatus.away")}` } ${t("nodesTable.connectionStatus.away")}`
: t("unknown.longName")} : t("unknown.longName")}
{node?.viaMqtt === true ? t("nodesTable.connectionStatus.viaMqtt") : ""} {node?.viaMqtt === true ? t("nodesTable.connectionStatus.viaMqtt") : ""}