Fix case where intermediary node in traceroute is unknown.

This commit is contained in:
Tom Fifield committed 2024-05-27 10:09:59 +08:00
1 parent 056a194ede
commit f16cce90c8
1 file changed
+1 -1
@@ -26,7 +26,7 @@ export const TraceRoute = ({
<span className="ml-4 border-l-2 border-l-backgroundPrimary pl-2 text-textPrimary">
{from?.user?.longName}↔
{route.map((hop) => (
nodes.get(hop).user?.longName + "↔"
nodes.get(hop)?.user?.longName ?? "Unknown" + "↔"
))}
{to?.user?.longName}
</span>