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 cf357e7 commit 09d44b5Copy full SHA for 09d44b5
gui/src/components/tracker/TrackerBattery.tsx
@@ -39,14 +39,11 @@ export function TrackerBattery({
39
</div>
40
{((!charging || showVoltage) && (
41
<div className="w-15">
42
- {!charging && runtime && (
+ {!charging && runtime != null && (
43
<Typography color={textColor}>
44
- {(runtime.valueOf() / BigInt(3600000000)).toString() +
+ {(runtime / BigInt(3600000000)).toString() +
45
'h ' +
46
- (
47
- (runtime.valueOf() % BigInt(3600000000)) /
48
- BigInt(60000000)
49
- ).toString() +
+ ((runtime % BigInt(3600000000)) / BigInt(60000000)).toString() +
50
'min' || 'N/A'}
51
</Typography>
52
)}
0 commit comments