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

This commit is contained in:
NIKOLYA PRODIGY
2026-05-27 04:26:20 +03:00
committed by GitHub
parent 9a4820523f
commit 2f78b64dfd

View File

@@ -165,7 +165,7 @@ const NodesPage = (): JSX.Element => {
? node?.viaMqtt === false && node.hopsAway === 0
? t("nodesTable.connectionStatus.direct")
: `${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("unknown.longName")}
{node?.viaMqtt === true ? t("nodesTable.connectionStatus.viaMqtt") : ""}