diff --git a/src/pages/Nodes.tsx b/src/pages/Nodes.tsx index 429fcbdd..9f96b987 100644 --- a/src/pages/Nodes.tsx +++ b/src/pages/Nodes.tsx @@ -1,7 +1,7 @@ -import { LocationResponseDialog } from "@app/components/Dialog/LocationResponseDialog"; -import { NodeOptionsDialog } from "@app/components/Dialog/NodeOptionsDialog"; -import { TracerouteResponseDialog } from "@app/components/Dialog/TracerouteResponseDialog"; -import Footer from "@app/components/UI/Footer"; +import { LocationResponseDialog } from "@app/components/Dialog/LocationResponseDialog.tsx"; +import { NodeOptionsDialog } from "@app/components/Dialog/NodeOptionsDialog.tsx"; +import { TracerouteResponseDialog } from "@app/components/Dialog/TracerouteResponseDialog.tsx"; +import Footer from "@app/components/UI/Footer.tsx"; import { Sidebar } from "@components/Sidebar.tsx"; import { Avatar } from "@components/UI/Avatar.tsx"; import { Mono } from "@components/generic/Mono.tsx"; @@ -135,13 +135,13 @@ const NodesPage = (): JSX.Element => { .match(/.{1,2}/g) ?.join(":") ?? "UNK"} , - + {node.lastHeard === 0 ? ( -

Never

+

Never

) : ( )} -
, + , {node.snr}db/ {Math.min(Math.max((node.snr + 10) * 5, 0), 100)}%/ @@ -149,7 +149,7 @@ const NodesPage = (): JSX.Element => { , {node.user?.publicKey && node.user?.publicKey.length > 0 ? ( - + ) : ( )} @@ -158,7 +158,7 @@ const NodesPage = (): JSX.Element => { {node.lastHeard !== 0 ? node.viaMqtt === false && node.hopsAway === 0 ? "Direct" - : `${node.hopsAway.toString()} ${ + : `${node.hopsAway?.toString()} ${ node.hopsAway > 1 ? "hops" : "hop" } away` : "-"}