From c16ebf3917c7116a88b0d793c35e4581f68eb164 Mon Sep 17 00:00:00 2001 From: Tilen Komel Date: Tue, 17 Sep 2024 19:50:27 +0200 Subject: [PATCH] Show hex on map instead of empty --- src/pages/Map.tsx | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/pages/Map.tsx b/src/pages/Map.tsx index 53df0cd4..42cc5fcb 100644 --- a/src/pages/Map.tsx +++ b/src/pages/Map.tsx @@ -7,6 +7,7 @@ import { SidebarButton } from "@components/UI/Sidebar/sidebarButton.js"; import { useAppStore } from "@core/stores/appStore.js"; import { useDevice } from "@core/stores/deviceStore.js"; import { Hashicon } from "@emeraldpay/hashicon-react"; +import { numberToHexUnpadded } from "@noble/curves/abstract/utils"; import { bbox, lineString } from "@turf/turf"; import { BoxSelectIcon, @@ -180,7 +181,8 @@ export const MapPage = (): JSX.Element => {
- {node.user?.longName} + {node.user?.longName || + `!${numberToHexUnpadded(node.num)}`}