From 7b8e186dfae9a6662db29dfabbae192eae3349c5 Mon Sep 17 00:00:00 2001 From: Martin Man Date: Fri, 11 Oct 2024 12:05:28 +0200 Subject: [PATCH] fix: Display battery voltage when power unavailable --- .../ui/BatterySummary/BatteryValues/BatteryValues.tsx | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/app/Marine2/components/ui/BatterySummary/BatteryValues/BatteryValues.tsx b/src/app/Marine2/components/ui/BatterySummary/BatteryValues/BatteryValues.tsx index 376687d5..4bfc9dd7 100644 --- a/src/app/Marine2/components/ui/BatterySummary/BatteryValues/BatteryValues.tsx +++ b/src/app/Marine2/components/ui/BatterySummary/BatteryValues/BatteryValues.tsx @@ -40,6 +40,11 @@ export const BatteryValues: FC = ({ battery, boxSize, electricalPowerIndi )} + {showWatts && battery.power === undefined && (battery.voltage || battery.voltage === 0) && ( +
+ +
+ )}
{batteryStateFor(battery.state, battery.bmsstate, battery.timetogo ?? null)}