mirror of
https://github.com/meshtastic/web.git
synced 2026-05-05 21:25:01 -04:00
Mark never heard nodes as '-' in connection info
Nodes never heard before show hop count of 0, and not via MQTT. However, reality is we've never connected to them. So, mark them as '-' in the Connection Info column in the nodes table.
This commit is contained in:
@@ -57,7 +57,10 @@ export const NodesPage = (): JSX.Element => {
|
||||
{(node.snr + 10) * 5}raw
|
||||
</Mono>,
|
||||
<Mono>
|
||||
{node.viaMqtt === false && node.hopsAway === 0? "Direct": node.hopsAway.toString() + " hops away"}
|
||||
{node.lastHeard != 0 ?
|
||||
(node.viaMqtt === false && node.hopsAway === 0
|
||||
? "Direct": node.hopsAway.toString() + " hops away")
|
||||
: "-"}
|
||||
{node.viaMqtt === true? ", via MQTT": ""}
|
||||
</Mono>
|
||||
])}
|
||||
|
||||
Reference in New Issue
Block a user