Add fix
This commit is contained in:
+3
-3
@@ -63,9 +63,10 @@ const NodesPage = (): JSX.Element => {
|
|||||||
|
|
||||||
const handleLocation = useCallback(
|
const handleLocation = useCallback(
|
||||||
(location: Types.PacketMetadata<Protobuf.Mesh.Position>) => {
|
(location: Types.PacketMetadata<Protobuf.Mesh.Position>) => {
|
||||||
|
if (location.to.valueOf() !== hardware.myNodeNum) return;
|
||||||
setSelectedLocation(location);
|
setSelectedLocation(location);
|
||||||
},
|
},
|
||||||
[],
|
[hardware.myNodeNum],
|
||||||
);
|
);
|
||||||
|
|
||||||
return (
|
return (
|
||||||
@@ -157,8 +158,7 @@ const NodesPage = (): JSX.Element => {
|
|||||||
{node.lastHeard !== 0
|
{node.lastHeard !== 0
|
||||||
? node.viaMqtt === false && node.hopsAway === 0
|
? node.viaMqtt === false && node.hopsAway === 0
|
||||||
? "Direct"
|
? "Direct"
|
||||||
: `${node.hopsAway.toString()} ${
|
: `${node.hopsAway.toString()} ${node.hopsAway > 1 ? "hops" : "hop"
|
||||||
node.hopsAway > 1 ? "hops" : "hop"
|
|
||||||
} away`
|
} away`
|
||||||
: "-"}
|
: "-"}
|
||||||
{node.viaMqtt === true ? ", via MQTT" : ""}
|
{node.viaMqtt === true ? ", via MQTT" : ""}
|
||||||
|
|||||||
Reference in New Issue
Block a user