diff --git a/config/astal/components/QuickActions/modules/Battery.tsx b/config/astal/components/QuickActions/modules/Battery.tsx index f7c3fd7..dd04bc1 100644 --- a/config/astal/components/QuickActions/modules/Battery.tsx +++ b/config/astal/components/QuickActions/modules/Battery.tsx @@ -41,10 +41,10 @@ export const BatteryBox = () => { ); }; +const MINUTE = 60; +const HOUR = MINUTE * 60; const toTime = (time: number) => { - const MINUTE = 60; - const HOUR = MINUTE * 60; - + if (!time) return "Waiting on BIOS" if (time > 24 * HOUR) return "24h+"; const hours = Math.round(time / HOUR);