Skip to content

Commit 09d44b5

Browse files
committed
linter borked it
1 parent cf357e7 commit 09d44b5

File tree

1 file changed

+3
-6
lines changed

1 file changed

+3
-6
lines changed

gui/src/components/tracker/TrackerBattery.tsx

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -39,14 +39,11 @@ export function TrackerBattery({
3939
</div>
4040
{((!charging || showVoltage) && (
4141
<div className="w-15">
42-
{!charging && runtime && (
42+
{!charging && runtime != null && (
4343
<Typography color={textColor}>
44-
{(runtime.valueOf() / BigInt(3600000000)).toString() +
44+
{(runtime / BigInt(3600000000)).toString() +
4545
'h ' +
46-
(
47-
(runtime.valueOf() % BigInt(3600000000)) /
48-
BigInt(60000000)
49-
).toString() +
46+
((runtime % BigInt(3600000000)) / BigInt(60000000)).toString() +
5047
'min' || 'N/A'}
5148
</Typography>
5249
)}

0 commit comments

Comments
 (0)