Fix traceroute ordering for multi-hop traceroutes
This commit is contained in:
@@ -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>
|
||||||
);
|
);
|
||||||
|
|||||||
Reference in New Issue
Block a user