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
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with
3 additions and
1 deletions
-
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>, |
|
|
|
|