diff --git a/src/components/Settings.tsx b/src/components/Settings.tsx index 3a924fee..03647136 100644 --- a/src/components/Settings.tsx +++ b/src/components/Settings.tsx @@ -39,11 +39,7 @@ const Settings: React.FC = ({ settings, onSave, onClose }) => { return } - const timer = setTimeout(() => { - onSave(localSettings) - }, 500) // Debounce for 500ms - - return () => clearTimeout(timer) + onSave(localSettings) }, [localSettings, onSave]) const previewFontFamily = getFontFamily(localSettings.readingFont)