We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 09d44b5 commit d3eafb8Copy full SHA for d3eafb8
gui/src/components/tracker/TrackerBattery.tsx
@@ -39,12 +39,12 @@ export function TrackerBattery({
39
</div>
40
{((!charging || showVoltage) && (
41
<div className="w-15">
42
- {!charging && runtime != null && (
+ {!charging && runtime != null && runtime > 0 && (
43
<Typography color={textColor}>
44
{(runtime / BigInt(3600000000)).toString() +
45
'h ' +
46
((runtime % BigInt(3600000000)) / BigInt(60000000)).toString() +
47
- 'min' || 'N/A'}
+ 'min'}
48
</Typography>
49
)}
50
{!charging && (!runtime || showVoltage) && (
0 commit comments