From 94cca88e2eccc9e06d1d6a76b64679f7190aede9 Mon Sep 17 00:00:00 2001 From: Hunter275 Date: Sat, 9 Nov 2024 21:10:55 -0500 Subject: [PATCH] If the batteryLevel is over 100, its charging --- src/components/Sidebar.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/components/Sidebar.tsx b/src/components/Sidebar.tsx index 05f5ef19..48c496e5 100644 --- a/src/components/Sidebar.tsx +++ b/src/components/Sidebar.tsx @@ -80,7 +80,7 @@ export const Sidebar = ({ children }: SidebarProps): JSX.Element => {
- {myNode?.deviceMetrics?.batteryLevel ?? "UNK"}% + {myNode?.deviceMetrics?.batteryLevel ? myNode?.deviceMetrics?.batteryLevel > 100 ? "Charging" : myNode?.deviceMetrics?.batteryLevel + "%" : "UNK"}