Browse Source

Fixed hops singular form

pull/268/head
Tilen Komel 2 years ago
parent
commit
5771e1b733
  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