Browse Source

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

Fixed hops singular form
pull/278/head
Hunter Thornsberry 2 years ago
committed by GitHub
parent
commit
cfc2ea0fe5
No known key found for this signature in database GPG Key ID: B5690EEEBB952194
  1. 4
      src/pages/Nodes.tsx

4
src/pages/Nodes.tsx

@ -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>,

Loading…
Cancel
Save