Browse Source

Updated traceroute response

pull/307/head
Tilen Komel 2 years ago
parent
commit
bd48b02ef3
  1. 12
      src/components/PageComponents/Messages/TraceRoute.tsx

12
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">
{to?.user?.longName}{from?.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">
{to?.user?.longName} {to?.user?.longName} {" "}
{route.map((hop) => { {route.map(
const node = nodes.get(hop); (hop) =>
return `${node?.user?.longName ?? (node?.num ? numberToHexUnpadded(node.num) : "Unknown")}`; `${nodes.get(hop)?.user?.longName ?? `!${numberToHexUnpadded(hop)}`}`,
})} )}
{from?.user?.longName} {from?.user?.longName}
</span> </span>
</div> </div>

Loading…
Cancel
Save