From aa9ebaf22b31c93f76c927a9f774b471a4288e9d Mon Sep 17 00:00:00 2001 From: Janis Hutz Date: Thu, 9 Oct 2025 09:33:21 +0200 Subject: [PATCH] [Astal] Battery widget: Show waiting --- config/astal/components/QuickActions/modules/Battery.tsx | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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);