fix: update power saving mode condition to include zero duration

This commit is contained in:
Adam Shiervani 2025-10-17 15:48:03 +00:00
parent da6f0337ee
commit c50d8f979f
1 changed files with 1 additions and 1 deletions

View File

@ -95,7 +95,7 @@ export default function SettingsHardwareRoute() {
return; return;
} }
const result = resp.result as { enabled: boolean; duration: number }; const result = resp.result as { enabled: boolean; duration: number };
setPowerSavingEnabled(result.duration > 0); setPowerSavingEnabled(result.duration >= 0);
}); });
}, [send]); }, [send]);