Browse Source

Add fix

pull/467/head
Tilen Komel 1 year ago
parent
commit
379ac46ec8
  1. 6
      src/pages/Nodes.tsx

6
src/pages/Nodes.tsx

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

Loading…
Cancel
Save