diff --git a/src/pages/Nodes.tsx b/src/pages/Nodes.tsx index 429fcbdd..19d59b61 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"; @@ -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` : "-"}