diff --git a/web/src/components/Settings/SettingsDialog.jsx b/web/src/components/Settings/SettingsDialog.jsx index 6749602..11b1faf 100644 --- a/web/src/components/Settings/SettingsDialog.jsx +++ b/web/src/components/Settings/SettingsDialog.jsx @@ -70,7 +70,7 @@ export default function SettingsDialog({ handleClose }) { const { CacheSize, ReaderReadAHead, PreloadCache } = settings || {} useEffect(() => { - if (!CacheSize || !ReaderReadAHead) return + if (isNaN(CacheSize) || isNaN(ReaderReadAHead) || isNaN(PreloadCache)) return setCacheSize(CacheSize) setCachePercentage(ReaderReadAHead)