use mac instead of unknown on peers page

This commit is contained in:
Sacha Weatherstone
2022-11-06 22:48:52 +10:00
parent b41b69b410
commit a9561fe622
+5 -1
View File
@@ -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">