mirror of
https://github.com/9technologygroup/patchmon.net.git
synced 2025-11-22 23:43:43 +00:00
fix(frontend): isNaN is unsafe
This commit is contained in:
@@ -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)),
|
||||
|
||||
Reference in New Issue
Block a user