Browse Source

use mac instead of unknown on peers page

pull/66/head
Sacha Weatherstone 4 years ago
parent
commit
a9561fe622
No known key found for this signature in database GPG Key ID: 7AB2D7E206124B31
  1. 6
      src/pages/Peers.tsx

6
src/pages/Peers.tsx

@ -72,7 +72,11 @@ export const PeersPage = (): JSX.Element => {
<td className="flex gap-2 whitespace-nowrap py-2 pr-3 pl-6 text-sm font-medium text-gray-900">
<Hashicon size={24} value={node.data.num.toString()} />
<span className="my-auto">
{node.data.user?.longName ?? "Unknown"}
{/* node.data.user?.longName */}
{undefined ??
`Meshtastic_${base16
.stringify(node.data.user?.macaddr.subarray(4, 6) ?? [])
.toLowerCase()}`}
</span>
</td>
<td className="whitespace-nowrap py-2 text-sm text-gray-500">

Loading…
Cancel
Save