From 5666191a6b1e6f528b75587f3f2001c5ca3d7d0e Mon Sep 17 00:00:00 2001 From: Yinyin Liu Date: Mon, 20 Apr 2026 10:00:48 +0200 Subject: [PATCH] fix battery volatge unit in overview for sodistore home, pro, grid --- .../src/content/dashboards/Overview/chartOptions.tsx | 2 ++ 1 file changed, 2 insertions(+) diff --git a/typescript/frontend-marios2/src/content/dashboards/Overview/chartOptions.tsx b/typescript/frontend-marios2/src/content/dashboards/Overview/chartOptions.tsx index 64ec1133f..a44863d5c 100644 --- a/typescript/frontend-marios2/src/content/dashboards/Overview/chartOptions.tsx +++ b/typescript/frontend-marios2/src/content/dashboards/Overview/chartOptions.tsx @@ -244,6 +244,8 @@ export const getChartOptions = ( const seriesName = w.config.series[seriesIndex].name; if (seriesName === 'Battery SOC') { return val.toFixed(2) + ' %'; + } else if (seriesName === 'Battery Voltage') { + return val.toFixed(2) + ' (V)'; } else { return ( formatPowerForGraph(val, chartInfo.magnitude).value.toFixed(