Merge pull request #268 from KomelT/fix/hops-singular

Fixed hops singular form
This commit is contained in:
Hunter Thornsberry
2024-08-06 00:45:10 -04:00
committed by GitHub
+3 -1
View File
@@ -75,7 +75,9 @@ export const NodesPage = (): JSX.Element => {
{node.lastHeard !== 0
? node.viaMqtt === false && node.hopsAway === 0
? "Direct"
: `${node.hopsAway.toString()} hops away`
: `${node.hopsAway.toString()} ${
node.hopsAway > 1 ? "hops" : "hop"
} away`
: "-"}
{node.viaMqtt === true ? ", via MQTT" : ""}
</Mono>,