diff --git a/gui/src/components/tracker/TrackerBattery.tsx b/gui/src/components/tracker/TrackerBattery.tsx index 1f4c232ab..e7617de92 100644 --- a/gui/src/components/tracker/TrackerBattery.tsx +++ b/gui/src/components/tracker/TrackerBattery.tsx @@ -15,7 +15,7 @@ export function TrackerBattery({ */ value: number; voltage?: number | null; - runtime?: BigInt | null + runtime?: bigint | null; disabled?: boolean; textColor?: string; }) { @@ -35,24 +35,19 @@ export function TrackerBattery({ return (
- +
{((!charging || showVoltage) && (
{!charging && runtime && ( - {(( - runtime.valueOf() / - BigInt(3600000000) - ).toString() + - 'h ' + - ( - (runtime.valueOf() % - BigInt(3600000000)) / - BigInt(60000000) - ).toString() + - 'min') || - 'N/A'} + {(runtime.valueOf() / BigInt(3600000000)).toString() + + 'h ' + + ( + (runtime.valueOf() % BigInt(3600000000)) / + BigInt(60000000) + ).toString() + + 'min' || 'N/A'} )} {!charging && (!runtime || showVoltage) && (