From fdfdcaf893dbbd5d9cf5bd346d4c5905f5276f47 Mon Sep 17 00:00:00 2001 From: andreielnino Date: Thu, 2 Mar 2023 14:17:36 +0100 Subject: [PATCH] Resolve missing keys warnings --- .../components/boxes/BatteriesOverview/BatteriesOverview.tsx | 2 +- src/app/Marine2/components/ui/ValueBar/ValueBar.tsx | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/app/Marine2/components/boxes/BatteriesOverview/BatteriesOverview.tsx b/src/app/Marine2/components/boxes/BatteriesOverview/BatteriesOverview.tsx index 953d34243..144b02b31 100644 --- a/src/app/Marine2/components/boxes/BatteriesOverview/BatteriesOverview.tsx +++ b/src/app/Marine2/components/boxes/BatteriesOverview/BatteriesOverview.tsx @@ -39,7 +39,7 @@ const BatteriesOverview = ({ mode = "full" }: Props) => { > {overviewBatteries.map((b) => ( -
+
))} diff --git a/src/app/Marine2/components/ui/ValueBar/ValueBar.tsx b/src/app/Marine2/components/ui/ValueBar/ValueBar.tsx index b84c84883..e452c89bf 100644 --- a/src/app/Marine2/components/ui/ValueBar/ValueBar.tsx +++ b/src/app/Marine2/components/ui/ValueBar/ValueBar.tsx @@ -10,8 +10,8 @@ const ValueBar = ({ values, prefix }: Props) => {
{prefix &&
{prefix}
}
- {values.map((v) => ( -
+ {values.map((v, idx) => ( +
{v.value && useKw && v.unit === "W" ? formatValue(v.value / 1000) : formatValue(v.value)} {v.unit}