From e177ff135c89e76812b8d5c3a76a1dc74459a88d Mon Sep 17 00:00:00 2001 From: nikk gitanes Date: Thu, 15 Jul 2021 17:38:30 +0300 Subject: [PATCH] update web --- web/src/components/Settings/SettingsDialog.jsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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)