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:
+4
-1
@@ -57,7 +57,10 @@ export const NodesPage = (): JSX.Element => {
|
|||||||
{(node.snr + 10) * 5}raw
|
{(node.snr + 10) * 5}raw
|
||||||
</Mono>,
|
</Mono>,
|
||||||
<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": ""}
|
{node.viaMqtt === true? ", via MQTT": ""}
|
||||||
</Mono>
|
</Mono>
|
||||||
])}
|
])}
|
||||||
|
|||||||
Reference in New Issue
Block a user