diff --git a/src/components/molecules/ThemeSwitch.jsx b/src/components/molecules/ThemeSwitch.jsx index c0a1c25..ccb65df 100644 --- a/src/components/molecules/ThemeSwitch.jsx +++ b/src/components/molecules/ThemeSwitch.jsx @@ -58,8 +58,8 @@ function ThemeSwitch() { classNameDark: 'dark', classNameLight: 'light' }) - const [themeColor, setThemeColor] = useState() - const [bodyClass, setBodyClass] = useState() + const [themeColor, setThemeColor] = useState('') + const [bodyClass, setBodyClass] = useState('') useEffect(() => { setBodyClass(value ? 'dark' : null)