From 3aedc7b7c25fb71fcdf1e9b02a04ff07aed62f88 Mon Sep 17 00:00:00 2001 From: Hunter Thornsberry Date: Sun, 23 Jun 2024 19:03:59 -0400 Subject: [PATCH] fixes --- src/components/Sidebar.tsx | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/components/Sidebar.tsx b/src/components/Sidebar.tsx index 68fc9c40..81c37b07 100644 --- a/src/components/Sidebar.tsx +++ b/src/components/Sidebar.tsx @@ -1,4 +1,3 @@ -import { DeviceMetadata } from "@buf/meshtastic_protobufs.bufbuild_es/meshtastic/mesh_pb"; import { SidebarSection } from "@components/UI/Sidebar/SidebarSection.js"; import { SidebarButton } from "@components/UI/Sidebar/sidebarButton.js"; import { Subtle } from "@components/UI/Typography/Subtle.js"; @@ -24,7 +23,7 @@ export interface SidebarProps { export const Sidebar = ({ children }: SidebarProps): JSX.Element => { const { hardware, nodes, metadata } = useDevice(); const myNode = nodes.get(hardware.myNodeNum); - const myMetadata = metadata.get(hardware.myNodeNum); + const myMetadata = metadata.get(0); const { activePage, setActivePage, setDialogOpen } = useDevice(); interface NavLink { @@ -89,7 +88,7 @@ export const Sidebar = ({ children }: SidebarProps): JSX.Element => {
- { myMetadata?.firmwareVersion ?? "UNK"} + v{ myMetadata?.firmwareVersion ?? "UNK"}