Browse Source

Fix traceroute ordering for multi-hop traceroutes

pull/211/head
Tom Fifield 2 years ago
parent
commit
569c2daa09
  1. 8
      src/components/PageComponents/Messages/TraceRoute.tsx

8
src/components/PageComponents/Messages/TraceRoute.tsx

@ -18,17 +18,17 @@ export const TraceRoute = ({
return route.length == 0 ? ( return route.length == 0 ? (
<div className="ml-5 flex"> <div className="ml-5 flex">
<span className="ml-4 border-l-2 border-l-backgroundPrimary pl-2 text-textPrimary"> <span className="ml-4 border-l-2 border-l-backgroundPrimary pl-2 text-textPrimary">
{from?.user?.longName}{to?.user?.longName} {to?.user?.longName}{from?.user?.longName}
</span> </span>
</div> </div>
) : ( ) : (
<div className="ml-5 flex"> <div className="ml-5 flex">
<span className="ml-4 border-l-2 border-l-backgroundPrimary pl-2 text-textPrimary"> <span className="ml-4 border-l-2 border-l-backgroundPrimary pl-2 text-textPrimary">
{from?.user?.longName} {to?.user?.longName}
{route.map((hop) => ( {route.map((hop) => (
nodes.get(hop)?.user?.longName ?? "Unknown" + "↔" nodes.get(hop)?.user?.longName + "↔" ?? "Unknown↔"
))} ))}
{to?.user?.longName} {from?.user?.longName}
</span> </span>
</div> </div>
); );

Loading…
Cancel
Save