Browse Source

Properly display the peer name in "Peers" (#106)

Fixes #77
pull/108/head
Michel Jung 3 years ago
committed by GitHub
parent
commit
283682eb94
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 4
      src/pages/Peers.tsx

4
src/pages/Peers.tsx

@ -30,11 +30,11 @@ export const PeersPage = (): JSX.Element => {
rows={filteredNodes.map((node) => [
<Hashicon size={24} value={node.num.toString()} />,
<h1>
{node.user?.longName ?? node.user?.macaddr
{node.user?.longName ?? (node.user?.macaddr
? `Meshtastic ${base16
.stringify(node.user?.macaddr.subarray(4, 6) ?? [])
.toLowerCase()}`
: `UNK: ${node.num}`}
: `UNK: ${node.num}`)}
</h1>,
<Mono>{Protobuf.HardwareModel[node.user?.hwModel ?? 0]}</Mono>,

Loading…
Cancel
Save