fix(frontend): isNaN is unsafe

This commit is contained in:
tigattack
2025-09-25 00:59:57 +01:00
parent a1bf2df59d
commit c840a3fdcc
2 changed files with 2 additions and 2 deletions

View File

@@ -580,7 +580,7 @@ const Settings = () => {
value={formData.updateInterval}
onChange={(e) => {
const val = parseInt(e.target.value);
if (!isNaN(val)) {
if (!Number.isNaN(val)) {
handleInputChange(
"updateInterval",
Math.min(1440, Math.max(5, val)),