Skip to content

Commit

Permalink
Fix bat temp percent.
Browse files Browse the repository at this point in the history
  • Loading branch information
NiklasHeneka committed Jul 18, 2024
1 parent a576fae commit 59715fd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/overview/VoltagesValues.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -178,7 +178,7 @@ function EntryWithPercent({ label, nodeName, objectEntryName, min, max, target}:
position: "relative",
top: "-0.25em",
}}>
{(value === undefined) ? `?${unit}` : `${(value as number).toFixed(2)}${unit} [${((100) * ((value as number) - min) / (max - min)).toFixed(2)}%]`}
{(value === undefined) ? `?${unit} [?%]` : `${(value as number).toFixed(2)}${unit} [${((100) * ((value as number) - min) / (max - min)).toFixed(2)}%]`}
</Typography>
</Stack>
<Stack direction="row" justifyContent="space-around" margin={0} padding={0} width="30%">
Expand Down

0 comments on commit 59715fd

Please sign in to comment.